Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ for i,model in enumerate(models):
|
|
16 |
pass
|
17 |
print (loaded_model)
|
18 |
|
19 |
-
def run_dif(out_prompt
|
20 |
out_box=[]
|
21 |
out_html=""
|
22 |
for i,ea in enumerate(loaded_model):
|
@@ -108,5 +108,5 @@ with gr.Blocks(css=css) as app:
|
|
108 |
out_html=gr.HTML()
|
109 |
outp=gr.Gallery()
|
110 |
btn=gr.Button()
|
111 |
-
btn.click(
|
112 |
app.launch()
|
|
|
16 |
pass
|
17 |
print (loaded_model)
|
18 |
|
19 |
+
def run_dif(out_prompt):
|
20 |
out_box=[]
|
21 |
out_html=""
|
22 |
for i,ea in enumerate(loaded_model):
|
|
|
108 |
out_html=gr.HTML()
|
109 |
outp=gr.Gallery()
|
110 |
btn=gr.Button()
|
111 |
+
btn.click(run_dif,inp,[outp,out_html])
|
112 |
app.launch()
|