Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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 |
-
|
195 |
-
result[idx]
|
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))
|