Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
•
1564904
1
Parent(s):
99a7f16
Maybe make the layout slightly nicer (#1)
Browse files- Maybe make the layout slightly nicer (4a84356d9d6227735eb29f7d6e8ac88ed34f94b0)
app.py
CHANGED
@@ -39,13 +39,14 @@ with demo:
|
|
39 |
with gr.Column():
|
40 |
with gr.Row():
|
41 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
|
|
|
|
42 |
with gr.Column():
|
43 |
-
b5 = gr.Button("Run Sentiment Analysis and Forward Looking Statement Analysis")
|
44 |
with gr.Row():
|
45 |
fin_spans = gr.HighlightedText()
|
46 |
-
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
47 |
with gr.Row():
|
48 |
fls_spans = gr.HighlightedText()
|
49 |
-
|
|
|
50 |
|
51 |
demo.launch()
|
|
|
39 |
with gr.Column():
|
40 |
with gr.Row():
|
41 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
42 |
+
with gr.Row():
|
43 |
+
b5 = gr.Button("Run Sentiment Analysis and Forward Looking Statement Analysis")
|
44 |
with gr.Column():
|
|
|
45 |
with gr.Row():
|
46 |
fin_spans = gr.HighlightedText()
|
|
|
47 |
with gr.Row():
|
48 |
fls_spans = gr.HighlightedText()
|
49 |
+
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
50 |
+
b5.click(fls, inputs=text, outputs=fls_spans)
|
51 |
|
52 |
demo.launch()
|