Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ if prompt and st.button('Generate Image'):
|
|
| 21 |
# Ensure you use the correct function based on your API documentation. Below is for demonstration.
|
| 22 |
try:
|
| 23 |
response = openai.Image.create(
|
| 24 |
-
model="
|
| 25 |
prompt=prompt,
|
| 26 |
n=1,
|
| 27 |
size="1024x1024"
|
|
|
|
| 21 |
# Ensure you use the correct function based on your API documentation. Below is for demonstration.
|
| 22 |
try:
|
| 23 |
response = openai.Image.create(
|
| 24 |
+
model="dall-e-3", # Use the correct model identifier
|
| 25 |
prompt=prompt,
|
| 26 |
n=1,
|
| 27 |
size="1024x1024"
|