awacke1 commited on
Commit
f9c92f2
1 Parent(s): 8dd1a22

Update app.py

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