Update app.py
Browse files
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 |
-
|
25 |
-
return temp
|
26 |
|
27 |
|
28 |
|
@@ -39,7 +39,7 @@ 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.
|
43 |
b2.click(mainFun2,inputs=answer,outputs=label_ner)
|
44 |
|
45 |
|
|
|
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.HighlightedText()
|
43 |
b2.click(mainFun2,inputs=answer,outputs=label_ner)
|
44 |
|
45 |
|