Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -230,23 +230,10 @@ with gr.Blocks() as app:
|
|
230 |
n_out2=gr.Label(label="Output")
|
231 |
outp2 = gr.HTML("""""")
|
232 |
with gr.Row():
|
233 |
-
|
234 |
-
lab3 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[3]}'>{models[3]}</a></b>""")
|
235 |
-
n_out3=gr.Label(label="Output")
|
236 |
-
outp3 = gr.HTML("""""")
|
237 |
-
with gr.Box():
|
238 |
-
lab4 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[4]}'>{models[4]}</a></b>""")
|
239 |
-
n_out4=gr.Label(label="Output")
|
240 |
-
outp4 = gr.HTML("""""")
|
241 |
-
with gr.Box():
|
242 |
-
lab5 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[5]}'>{models[5]}</a></b>""")
|
243 |
-
n_out5=gr.Label(label="Output")
|
244 |
-
outp5 = gr.HTML("""""")
|
245 |
load_btn.click(load_url,in_url,[inp,mes])
|
246 |
-
btn.click(aiornot0,[inp],[outp0,n_out0]).then(tot_prob,None,
|
247 |
-
btn.click(aiornot1,[inp],[outp1,n_out1]).then(tot_prob,None,
|
248 |
-
btn.click(aiornot2,[inp],[outp2,n_out2]).then(tot_prob,None,
|
249 |
-
|
250 |
-
#btn.click(aiornot4,[inp],[outp4,n_out4])
|
251 |
-
#btn.click(aiornot5,[inp],[outp5,n_out5])
|
252 |
app.queue(concurrency_count=20).launch()
|
|
|
230 |
n_out2=gr.Label(label="Output")
|
231 |
outp2 = gr.HTML("""""")
|
232 |
with gr.Row():
|
233 |
+
fin=gr.Label(label="Final Probability")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
load_btn.click(load_url,in_url,[inp,mes])
|
235 |
+
btn.click(aiornot0,[inp],[outp0,n_out0]).then(tot_prob,None,fin)
|
236 |
+
btn.click(aiornot1,[inp],[outp1,n_out1]).then(tot_prob,None,fin)
|
237 |
+
btn.click(aiornot2,[inp],[outp2,n_out2]).then(tot_prob,None,fin)
|
238 |
+
|
|
|
|
|
239 |
app.queue(concurrency_count=20).launch()
|