Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,11 @@ def mainFun(query,file):
|
|
20 |
answer_main,answer_p=quad(query,file)
|
21 |
return text,answer_p,summarize_text(answer_main)
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
|
@@ -35,7 +40,7 @@ with demo:
|
|
35 |
|
36 |
b2=gr.Button("Get NER")
|
37 |
label_ner = gr.HighlightedText()
|
38 |
-
b2.click(
|
39 |
|
40 |
b3=gr.Button("Get CLAIM")
|
41 |
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():
|
24 |
+
return fin_ner(answer_main)
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
|
29 |
|
30 |
|
|
|
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()
|