Spaces:
Runtime error
Runtime error
Commit ·
d0890b5
1
Parent(s): 8d84951
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,8 +31,6 @@ def generate_image(prompt):
|
|
| 31 |
response = openai.Image.create(
|
| 32 |
prompt=text,
|
| 33 |
image_return = model(prompt)
|
| 34 |
-
n=1,
|
| 35 |
-
size="512x512",
|
| 36 |
response_format="url"
|
| 37 |
)
|
| 38 |
return text, response["data"][0]["url"]
|
|
|
|
| 31 |
response = openai.Image.create(
|
| 32 |
prompt=text,
|
| 33 |
image_return = model(prompt)
|
|
|
|
|
|
|
| 34 |
response_format="url"
|
| 35 |
)
|
| 36 |
return text, response["data"][0]["url"]
|