Upload 2 files
Browse files- modutils.py +2 -2
modutils.py
CHANGED
@@ -352,9 +352,9 @@ def save_image_history(image, gallery, files, model_name: str, progress=gr.Progr
|
|
352 |
except Exception as e:
|
353 |
print(e)
|
354 |
finally:
|
355 |
-
files.
|
356 |
gallery.insert(0, (str(newpath), str(filename)))
|
357 |
-
|
358 |
|
359 |
|
360 |
def download_private_repo(repo_id, dir_path, is_replace):
|
|
|
352 |
except Exception as e:
|
353 |
print(e)
|
354 |
finally:
|
355 |
+
files.insert(0, str(newpath))
|
356 |
gallery.insert(0, (str(newpath), str(filename)))
|
357 |
+
return gr.update(value=gallery), gr.update(value=files, visible=True)
|
358 |
|
359 |
|
360 |
def download_private_repo(repo_id, dir_path, is_replace):
|