Omnibus commited on
Commit
2fc37ec
1 Parent(s): 7a546ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -207,6 +207,10 @@ def tot_prob():
207
 
208
  pass
209
  print (f'ERROR :: {e}')
 
 
 
 
210
  with gr.Blocks() as app:
211
  with gr.Row():
212
  with gr.Column():
@@ -232,6 +236,7 @@ with gr.Blocks() as app:
232
  outp2 = gr.HTML("""""")
233
  with gr.Row():
234
  fin=gr.Label(label="Final Probability")
 
235
  load_btn.click(load_url,in_url,[inp,mes])
236
  btn.click(aiornot0,[inp],[outp0,n_out0]).then(tot_prob,None,fin)
237
  btn.click(aiornot1,[inp],[outp1,n_out1]).then(tot_prob,None,fin)
 
207
 
208
  pass
209
  print (f'ERROR :: {e}')
210
+
211
+ def clear_fin():
212
+ fin_sum.clear()
213
+
214
  with gr.Blocks() as app:
215
  with gr.Row():
216
  with gr.Column():
 
236
  outp2 = gr.HTML("""""")
237
  with gr.Row():
238
  fin=gr.Label(label="Final Probability")
239
+ fin.change(clear_fin,None,None)
240
  load_btn.click(load_url,in_url,[inp,mes])
241
  btn.click(aiornot0,[inp],[outp0,n_out0]).then(tot_prob,None,fin)
242
  btn.click(aiornot1,[inp],[outp1,n_out1]).then(tot_prob,None,fin)