Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ if uploaded_file is not None:
|
|
| 73 |
if len(os.listdir('generated_samples')) <= 10:
|
| 74 |
result.save(f"generated_samples/{str(len(os.listdir('generated_samples')))}.png")
|
| 75 |
byte_im = buf.getvalue()
|
| 76 |
-
run =ste.download_button(
|
| 77 |
#keeping the current style by update the weight
|
| 78 |
keep_style = st.sidebar.checkbox("Keep current style")
|
| 79 |
|
|
|
|
| 73 |
if len(os.listdir('generated_samples')) <= 10:
|
| 74 |
result.save(f"generated_samples/{str(len(os.listdir('generated_samples')))}.png")
|
| 75 |
byte_im = buf.getvalue()
|
| 76 |
+
run =ste.download_button(button_text="Download Image", data=byte_im, download_filename='afrodreams.jpg', mime="image/png")
|
| 77 |
#keeping the current style by update the weight
|
| 78 |
keep_style = st.sidebar.checkbox("Keep current style")
|
| 79 |
|