Spaces:
Runtime error
Runtime error
Maybe make the layout slightly nicer
#1
by
osanseviero
- opened
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()
|