Uthar commited on
Commit
9b40a98
·
verified ·
1 Parent(s): 4dbf572

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,6 +90,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
90
  with lock:
91
  png_path = model_str.replace("/", "_") + " - " + get_current_time() + "_" + str(theSeed) + ".png"
92
  # lnk_output(value=png_path)
 
93
  image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
94
  return image
95
  return None
@@ -217,7 +218,6 @@ with gr.Blocks(head=CSS + JS) as demo:
217
  with gr.Group():
218
  with gr.Row():
219
  output = [gr.Image(label=m, show_download_button=True, elem_classes=["image-monitor"], interactive=False, width=112, height=112, show_share_button=False, format="png", visible=True) for m in default_models]
220
- output.change(imgageHasUpdated)
221
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
222
 
223
  with gr.Column(scale=2):
 
90
  with lock:
91
  png_path = model_str.replace("/", "_") + " - " + get_current_time() + "_" + str(theSeed) + ".png"
92
  # lnk_output(value=png_path)
93
+ imgageHasUpdated(png_path)
94
  image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
95
  return image
96
  return None
 
218
  with gr.Group():
219
  with gr.Row():
220
  output = [gr.Image(label=m, show_download_button=True, elem_classes=["image-monitor"], interactive=False, width=112, height=112, show_share_button=False, format="png", visible=True) for m in default_models]
 
221
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
222
 
223
  with gr.Column(scale=2):