awacke1 commited on
Commit
634305f
1 Parent(s): ae4aefb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,8 +115,8 @@ def predict(prompt, guidance, steps, seed=1231231):
115
  image_path = os.path.join("", filename) # Specify your directory
116
  results.images[0].save(image_path)
117
  print(f"#Image saved as {image_path}")
118
- filename = safe_filename(prompt)
119
- image.save(filename)
120
  encoded_image = encode_image(image)
121
  html_link = f'<a href="data:image/png;base64,{encoded_image}" download="{filename}">Download Image</a>'
122
 
 
115
  image_path = os.path.join("", filename) # Specify your directory
116
  results.images[0].save(image_path)
117
  print(f"#Image saved as {image_path}")
118
+ #filename = safe_filename(prompt)
119
+ #image.save(filename)
120
  encoded_image = encode_image(image)
121
  html_link = f'<a href="data:image/png;base64,{encoded_image}" download="{filename}">Download Image</a>'
122