Spaces:
Sleeping
Sleeping
dhanishetty
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,14 @@ description = "provide prompt to generate an image"
|
|
11 |
|
12 |
|
13 |
def get_image(prompt ):
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
n=1,
|
21 |
)
|
22 |
-
|
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 |
|