Shredder commited on
Commit
f4d786c
1 Parent(s): c31e3f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -21,8 +21,8 @@ def mainFun(query,file):
21
  return text,answer_p,summarize_text(answer_main)
22
 
23
  def mainFun2(temp):
24
- return fin_ner(answer_main)
25
-
26
 
27
 
28
 
@@ -39,8 +39,9 @@ with demo:
39
  b1.click(mainFun, inputs=[selected_ques,txt_file], outputs=[text,answer,summarize])
40
 
41
  b2=gr.Button("Get NER")
42
- #label_ner = gr.HighlightedText()
43
- b2.click(mainFun2,inputs=answer,outputs=gr.HighlightedText())
 
44
 
45
  b3=gr.Button("Get CLAIM")
46
  label_claim = gr.Label()
 
21
  return text,answer_p,summarize_text(answer_main)
22
 
23
  def mainFun2(temp):
24
+ #return fin_ner(answer_main)
25
+ return temp
26
 
27
 
28
 
 
39
  b1.click(mainFun, inputs=[selected_ques,txt_file], outputs=[text,answer,summarize])
40
 
41
  b2=gr.Button("Get NER")
42
+ label_ner = gr.Textbox()
43
+ b2.click(mainFun2,inputs=answer,outputs=label_ner)
44
+
45
 
46
  b3=gr.Button("Get CLAIM")
47
  label_claim = gr.Label()