Shredder commited on
Commit
d518ecd
1 Parent(s): ebbff3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ def mainFun(query,file):
20
  answer_main,answer_p=quad(query,file)
21
  return text,answer_p,summarize_text(answer_main)
22
 
23
- def mainFun2():
24
  return fin_ner(answer_main)
25
 
26
 
@@ -40,7 +40,7 @@ with demo:
40
 
41
  b2=gr.Button("Get NER")
42
  label_ner = gr.HighlightedText()
43
- b2.click(mainFun2,outputs=label_ner)
44
 
45
  b3=gr.Button("Get CLAIM")
46
  label_claim = gr.Label()
 
20
  answer_main,answer_p=quad(query,file)
21
  return text,answer_p,summarize_text(answer_main)
22
 
23
+ def mainFun2(temp):
24
  return fin_ner(answer_main)
25
 
26
 
 
40
 
41
  b2=gr.Button("Get NER")
42
  label_ner = gr.HighlightedText()
43
+ b2.click(mainFun2,inputs=answer,outputs=label_ner)
44
 
45
  b3=gr.Button("Get CLAIM")
46
  label_claim = gr.Label()