Yaron Koresh commited on
Commit
63a98a3
·
verified ·
1 Parent(s): 7dd59c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -191,13 +191,12 @@ 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
- el = result[idx]
195
  p1 = prompt.value
196
  p2 = prompt2.value
197
- print(f'Starting {idx}: {el} {p1} {p2}')
198
  v = infer(p1,p2)
199
  print(f'Finished {idx}: {v}')
200
- el.value=v
201
  def _rets():
202
  ln = len(result)
203
  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
  p1 = prompt.value
195
  p2 = prompt2.value
196
+ print(f'Starting {idx}: {result[idx]} {p1} {p2}')
197
  v = infer(p1,p2)
198
  print(f'Finished {idx}: {v}')
199
+ result[idx].value=v
200
  def _rets():
201
  ln = len(result)
202
  idxs = list(range(ln))