Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def mainFun(query,file):
|
|
26 |
return answer_p,summarize_text(answer),fin_ner(answer),score_fincat(answer),get_sustainability(answer),fls(answer)
|
27 |
|
28 |
|
29 |
-
iface = gr.Interface(fn=mainFun, inputs=[gr.Dropdown(choices=
|
30 |
|
31 |
|
32 |
iface.launch()
|
|
|
26 |
return answer_p,summarize_text(answer),fin_ner(answer),score_fincat(answer),get_sustainability(answer),fls(answer)
|
27 |
|
28 |
|
29 |
+
iface = gr.Interface(fn=mainFun, inputs=[gr.Dropdown(choices=questions,label='SEARCH QUERY'),gr.inputs.File(label='TXT FILE')], title="CONBERT",description="CONTRACT REVIEW TOOL",article='Article', outputs=[gr.outputs.Textbox(label='Answer'),gr.outputs.Textbox(label='Summary'),gr.HighlightedText(label='NER'),gr.HighlightedText(label='CLAIM'),gr.HighlightedText(label='SUSTAINABILITY'),gr.HighlightedText(label='FLS')], allow_flagging="never")
|
30 |
|
31 |
|
32 |
iface.launch()
|