Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ def generate_image(stability_api_key, enhanced_prompt, style, negative_prompt):
|
|
| 76 |
|
| 77 |
def process_prompt(google_api_key, prompt, style):
|
| 78 |
enhanced_prompt = enhance_prompt(google_api_key, prompt, style)
|
| 79 |
-
return enhanced_prompt
|
| 80 |
|
| 81 |
def generate_from_enhanced(stability_api_key, enhanced_prompt, style, negative_prompt):
|
| 82 |
image_url = generate_image(stability_api_key, enhanced_prompt, style, negative_prompt)
|
|
|
|
| 76 |
|
| 77 |
def process_prompt(google_api_key, prompt, style):
|
| 78 |
enhanced_prompt = enhance_prompt(google_api_key, prompt, style)
|
| 79 |
+
return enhanced_prompt, enhanced_prompt # Return the enhanced prompt twice
|
| 80 |
|
| 81 |
def generate_from_enhanced(stability_api_key, enhanced_prompt, style, negative_prompt):
|
| 82 |
image_url = generate_image(stability_api_key, enhanced_prompt, style, negative_prompt)
|