awacke1 commited on
Commit
e1f2fd2
1 Parent(s): f9c92f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(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"
 
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"