Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,13 +20,7 @@ def process(prompt):
|
|
20 |
max_tokens=2048,
|
21 |
top_p=0.7
|
22 |
)
|
23 |
-
response = completion
|
24 |
-
.get("choices")[0]
|
25 |
-
.get("message")
|
26 |
-
.get("content")
|
27 |
-
.replace("```", "")
|
28 |
-
.replace("\n", "")
|
29 |
-
)
|
30 |
|
31 |
print(response)
|
32 |
image = client.text_to_image(response)
|
|
|
20 |
max_tokens=2048,
|
21 |
top_p=0.7
|
22 |
)
|
23 |
+
response = completion.get("choices")[0].get("message").get("content").replace("```", "").replace("\n", "")
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
print(response)
|
26 |
image = client.text_to_image(response)
|