Owos commited on
Commit
44e54d9
·
1 Parent(s): ad3b354

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")