Spaces:
Runtime error
Runtime error
Commit
·
2ca0b7a
1
Parent(s):
d0890b5
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,8 @@ def generate_image(prompt):
|
|
| 31 |
response = openai.Image.create(
|
| 32 |
prompt=text,
|
| 33 |
image_return = model(prompt)
|
| 34 |
-
response_format="url"
|
| 35 |
)
|
| 36 |
-
return text,
|
| 37 |
|
| 38 |
# Define the Gradio interface
|
| 39 |
prompt_input = Textbox("Enter a prompt", lines=3)
|
|
|
|
| 31 |
response = openai.Image.create(
|
| 32 |
prompt=text,
|
| 33 |
image_return = model(prompt)
|
|
|
|
| 34 |
)
|
| 35 |
+
return text, image_return
|
| 36 |
|
| 37 |
# Define the Gradio interface
|
| 38 |
prompt_input = Textbox("Enter a prompt", lines=3)
|