Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ if uploaded_file is not None:
|
|
67 |
st.image(result, width=500)
|
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")
|
|
|
67 |
st.image(result, width=500)
|
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")
|