Spaces:
Running
Running
dhanishetty
commited on
Commit
•
b267289
1
Parent(s):
ec62272
Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,12 @@ client = OpenAI(api_key= "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")
|
|
9 |
|
10 |
|
11 |
def get_image(prompt ):
|
12 |
-
response = client.images.generate(
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
)
|
19 |
|
20 |
|
|
|
9 |
|
10 |
|
11 |
def get_image(prompt ):
|
12 |
+
response = client.images.generate(
|
13 |
+
model="dall-e-3",
|
14 |
+
prompt= prompt,
|
15 |
+
size="1792x1024",
|
16 |
+
quality="standard",
|
17 |
+
n=1,
|
18 |
)
|
19 |
|
20 |
|