reformatted app
Browse files
app.py
CHANGED
@@ -95,23 +95,22 @@ with demo:
|
|
95 |
with gr.Row():
|
96 |
b2 = gr.Button("Summarize Text")
|
97 |
stext = gr.Textbox()
|
98 |
-
b2.click(summarize_text, inputs=text, outputs=stext)
|
99 |
-
with gr.Column():
|
100 |
with gr.Row():
|
101 |
b3 = gr.Button("Classify Overall Financial Sentiment")
|
102 |
label = gr.Label()
|
103 |
-
b3.click(text_to_sentiment, inputs=stext, outputs=label)
|
104 |
-
|
105 |
-
b4 = gr.Button("Extract Companies & Segments")
|
106 |
-
replaced_spans = gr.HighlightedText()
|
107 |
-
b4.click(fin_ner, inputs=text, outputs=replaced_spans)
|
108 |
-
with gr.Row():
|
109 |
b5 = gr.Button("Extract Financial Sentiment")
|
|
|
110 |
fin_spans = gr.HighlightedText()
|
111 |
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
112 |
with gr.Row():
|
113 |
-
#b6 = gr.Button("Extract Forward Looking Statements")
|
114 |
fls_spans = gr.HighlightedText()
|
115 |
b5.click(fls, inputs=text, outputs=fls_spans)
|
|
|
|
|
|
|
|
|
116 |
|
117 |
demo.launch()
|
|
|
95 |
with gr.Row():
|
96 |
b2 = gr.Button("Summarize Text")
|
97 |
stext = gr.Textbox()
|
98 |
+
b2.click(summarize_text, inputs=text, outputs=stext)
|
|
|
99 |
with gr.Row():
|
100 |
b3 = gr.Button("Classify Overall Financial Sentiment")
|
101 |
label = gr.Label()
|
102 |
+
b3.click(text_to_sentiment, inputs=stext, outputs=label)
|
103 |
+
with gr.Column():
|
|
|
|
|
|
|
|
|
104 |
b5 = gr.Button("Extract Financial Sentiment")
|
105 |
+
with gr.Row():
|
106 |
fin_spans = gr.HighlightedText()
|
107 |
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
108 |
with gr.Row():
|
|
|
109 |
fls_spans = gr.HighlightedText()
|
110 |
b5.click(fls, inputs=text, outputs=fls_spans)
|
111 |
+
with gr.Row():
|
112 |
+
b4 = gr.Button("Extract Companies & Segments")
|
113 |
+
replaced_spans = gr.HighlightedText()
|
114 |
+
b4.click(fin_ner, inputs=text, outputs=replaced_spans)
|
115 |
|
116 |
demo.launch()
|