John6666 commited on
Commit
f547e44
·
verified ·
1 Parent(s): 4f96932

Upload 2 files

Browse files
Files changed (1) hide show
  1. 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.isnert(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):
 
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):