Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|