Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ def predict(prompt, guidance, steps, seed=1231231):
|
|
| 176 |
print(f"#Image saved as {image_path}")
|
| 177 |
encoded_image = encode_image(image)
|
| 178 |
html_link = f'<a href="data:image/png;base64,{encoded_image}" download="{filename}">Download Image</a>'
|
| 179 |
-
|
| 180 |
except:
|
| 181 |
return results.images[0]
|
| 182 |
|
|
|
|
| 176 |
print(f"#Image saved as {image_path}")
|
| 177 |
encoded_image = encode_image(image)
|
| 178 |
html_link = f'<a href="data:image/png;base64,{encoded_image}" download="{filename}">Download Image</a>'
|
| 179 |
+
gr.HTML(html_link)
|
| 180 |
except:
|
| 181 |
return results.images[0]
|
| 182 |
|