dhanishetty commited on
Commit
efb25ff
·
verified ·
1 Parent(s): b52351a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -11,16 +11,14 @@ description = "provide prompt to generate an image"
11
 
12
 
13
  def get_image(prompt ):
14
- try:
15
- response = client.images.generate(
16
- model="dall-e-3",
17
- prompt= prompt,
18
- size="1792x1024",
19
- quality="standard",
20
- n=1,
21
  )
22
- except Exception as e:
23
- return f"An error occurred: {str(e)}"
24
 
25
 
26
 
 
11
 
12
 
13
  def get_image(prompt ):
14
+ response = client.images.generate(
15
+ model="dall-e-3",
16
+ prompt= prompt,
17
+ size="1792x1024",
18
+ quality="standard",
19
+ n=1,
 
20
  )
21
+
 
22
 
23
 
24