John6666 commited on
Commit
73acabb
·
verified ·
1 Parent(s): 88ab107

Upload modutils.py

Browse files
Files changed (1) hide show
  1. modutils.py +1 -1
modutils.py CHANGED
@@ -329,7 +329,7 @@ def save_gallery_history(images, files, history_gallery, history_files, progress
329
  return gr.update(value=output_gallery), gr.update(value=output_files, visible=True)
330
 
331
 
332
- def save_image_history(image, gallery, files, model_name: str, progress=gr.Progress(track_tqdm=True)):
333
  print(image)
334
  basename = f"{model_name.split('/')[-1]}_{datetime.now(FILENAME_TIMEZONE).strftime('%Y%m%d_%H%M%S')}"
335
  if image is None or (not isinstance(image, str) and not isinstance(image, Image.Image) and not isinstance(image, tuple)): return gr.update(), gr.update()
 
329
  return gr.update(value=output_gallery), gr.update(value=output_files, visible=True)
330
 
331
 
332
+ def save_image_history(image: str, gallery, files, model_name: str, progress=gr.Progress(track_tqdm=True)):
333
  print(image)
334
  basename = f"{model_name.split('/')[-1]}_{datetime.now(FILENAME_TIMEZONE).strftime('%Y%m%d_%H%M%S')}"
335
  if image is None or (not isinstance(image, str) and not isinstance(image, Image.Image) and not isinstance(image, tuple)): return gr.update(), gr.update()