Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def predict(prompt, guidance, steps, seed=1231231):
|
|
107 |
safe_date_time = datetime.now(central).strftime("%m%d_%H%M")
|
108 |
replaced_prompt = prompt.replace(" ", "_").replace("\n", "_")
|
109 |
safe_prompt = "".join(x for x in replaced_prompt if x.isalnum() or x == "_")[:90]
|
110 |
-
filename = f{safe_date_time}_{safe_prompt}.
|
111 |
|
112 |
|
113 |
# Save the image
|
|
|
107 |
safe_date_time = datetime.now(central).strftime("%m%d_%H%M")
|
108 |
replaced_prompt = prompt.replace(" ", "_").replace("\n", "_")
|
109 |
safe_prompt = "".join(x for x in replaced_prompt if x.isalnum() or x == "_")[:90]
|
110 |
+
filename = f"{safe_date_time}_{safe_prompt}.png"
|
111 |
|
112 |
|
113 |
# Save the image
|