Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ if uploaded_file is not None:
|
|
68 |
buf = BytesIO()
|
69 |
result.save(buf, format="png")
|
70 |
if len(os.listdir('generated_sampples')) <= 10:
|
71 |
-
result.save(f"generated_sampples/{str(len(os.listdir('generated_sampples'))}.png")
|
72 |
byte_im = buf.getvalue()
|
73 |
run =st.download_button(label="Download Image", data=byte_im, file_name='afrodreams.jpg', mime="image/png")
|
74 |
#keeping the current style by update the weight
|
|
|
68 |
buf = BytesIO()
|
69 |
result.save(buf, format="png")
|
70 |
if len(os.listdir('generated_sampples')) <= 10:
|
71 |
+
result.save(f"generated_sampples/{str(len(os.listdir('generated_sampples')))}.png")
|
72 |
byte_im = buf.getvalue()
|
73 |
run =st.download_button(label="Download Image", data=byte_im, file_name='afrodreams.jpg', mime="image/png")
|
74 |
#keeping the current style by update the weight
|