Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,8 @@ def process(prompt):
|
|
29 |
response = completion.get("choices")[0].get("message").get("content").replace("```", "").replace("\n", "")
|
30 |
print(response)
|
31 |
time = str(datetime.now())
|
|
|
|
|
32 |
image = client.text_to_image(response)
|
33 |
image.save("outputs/images/" + time)
|
34 |
with open("outputs/" + time + ".json", "wb") as f:
|
|
|
29 |
response = completion.get("choices")[0].get("message").get("content").replace("```", "").replace("\n", "")
|
30 |
print(response)
|
31 |
time = str(datetime.now())
|
32 |
+
print(time)
|
33 |
+
time = time.replace(".", "").replace(":","")
|
34 |
image = client.text_to_image(response)
|
35 |
image.save("outputs/images/" + time)
|
36 |
with open("outputs/" + time + ".json", "wb") as f:
|