Shredder commited on
Commit
bf6b7ed
1 Parent(s): 40670fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,7 +141,7 @@ def quad(query,file):
141
  #stext = resp[0]['summary_text']
142
 
143
  # highlight,dff=score_fincat(answer)
144
- return answer,summarize_text(answer),fin_ner(answer),get_sustainability(answer),fls(answer)
145
 
146
 
147
  # b6 = gr.Button("Get Sustainability")
@@ -151,7 +151,7 @@ def quad(query,file):
151
  #iface = gr.Interface(fn=get_sustainability, inputs="textbox", title="CONBERT",description="SUSTAINABILITY TOOL", outputs=gr.HighlightedText(), allow_flagging="never")
152
  #iface.launch()
153
 
154
- iface = gr.Interface(fn=quad, inputs=[gr.inputs.Textbox(label='SEARCH QUERY'),gr.inputs.File(label='TXT FILE')], title="CONBERT",description="SUSTAINABILITY TOOL",article='Article', outputs=[gr.outputs.Textbox(label='Answer'),gr.outputs.Textbox(label='Summary'),gr.HighlightedText(label='NER'),gr.HighlightedText(label='SUSTAINABILITY'),gr.HighlightedText(label='FLS')], allow_flagging="never")
155
 
156
 
157
  iface.launch()
 
141
  #stext = resp[0]['summary_text']
142
 
143
  # highlight,dff=score_fincat(answer)
144
+ return answer,summarize_text(answer),fin_ner(answer)
145
 
146
 
147
  # b6 = gr.Button("Get Sustainability")
 
151
  #iface = gr.Interface(fn=get_sustainability, inputs="textbox", title="CONBERT",description="SUSTAINABILITY TOOL", outputs=gr.HighlightedText(), allow_flagging="never")
152
  #iface.launch()
153
 
154
+ iface = gr.Interface(fn=quad, inputs=[gr.inputs.Textbox(label='SEARCH QUERY'),gr.inputs.File(label='TXT FILE')], title="CONBERT",description="SUSTAINABILITY TOOL",article='Article', outputs=[gr.outputs.Textbox(label='Answer'),gr.outputs.Textbox(label='Summary'),gr.HighlightedText(label='NER')], allow_flagging="never")
155
 
156
 
157
  iface.launch()