Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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}: {
|
198 |
v = infer(p1,p2)
|
199 |
print(f'Finished {idx}: {v}')
|
200 |
-
|
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))
|