Promotingai commited on
Commit
838239b
·
verified ·
1 Parent(s): 5bcc8de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="image-dalle-002", # Use the correct model identifier
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"