Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def process(prompt):
|
|
34 |
time = time.replace(".", "").replace(":","")
|
35 |
image = client.text_to_image(response)
|
36 |
image.save("outputs/images/" + time + ".png")
|
37 |
-
with open("outputs/" + time + ".json", "
|
38 |
f.write(json.dumps({"prompt": prompt, "refined_prompt": response, "image": "outputs/images/" + time + ".png"}))
|
39 |
return image
|
40 |
|
|
|
34 |
time = time.replace(".", "").replace(":","")
|
35 |
image = client.text_to_image(response)
|
36 |
image.save("outputs/images/" + time + ".png")
|
37 |
+
with open("outputs/" + time + ".json", "w") as f:
|
38 |
f.write(json.dumps({"prompt": prompt, "refined_prompt": response, "image": "outputs/images/" + time + ".png"}))
|
39 |
return image
|
40 |
|