Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ if uploaded_file is not None:
|
|
74 |
buf = BytesIO()
|
75 |
result.save(buf, format="png")
|
76 |
if len(os.listdir('generated_samples')) <= 10:
|
77 |
-
|
78 |
|
79 |
_ = huggingface_hub.upload_file(path_or_fileobj = 'out.png',
|
80 |
path_in_repo ="remote/" + img_file_name,
|
|
|
74 |
buf = BytesIO()
|
75 |
result.save(buf, format="png")
|
76 |
if len(os.listdir('generated_samples')) <= 10:
|
77 |
+
img_file_name = f"generated_samples/{str(len(os.listdir('generated_samples')))}.png"
|
78 |
|
79 |
_ = huggingface_hub.upload_file(path_or_fileobj = 'out.png',
|
80 |
path_in_repo ="remote/" + img_file_name,
|