Yaron Koresh commited on
Commit
d167970
·
verified ·
1 Parent(s): 5bab8c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -191,8 +191,8 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
191
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
192
 
193
  def _ret(idx):
194
- print(f'index: {idx}')
195
- result[idx] = infer(prompt,prompt2)
196
  def _rets():
197
  ln = len(result)
198
  idxs = list(range(ln))
 
191
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
192
 
193
  def _ret(idx):
194
+ v = infer(prompt,prompt2)
195
+ gr.update(result[idx],value=v)
196
  def _rets():
197
  ln = len(result)
198
  idxs = list(range(ln))