Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def predict(prompt, guidance, steps, seed=1231231):
|
|
104 |
#filename = f"{date_str}_{safe_prompt}.png"
|
105 |
|
106 |
central = pytz.timezone('US/Central')
|
107 |
-
safe_date_time = datetime.now(
|
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"
|
|
|
104 |
#filename = f"{date_str}_{safe_prompt}.png"
|
105 |
|
106 |
central = pytz.timezone('US/Central')
|
107 |
+
safe_date_time = datetime.datetime.now().strftime("%Y%m%d")
|
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"
|