Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -477,10 +477,7 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
|
|
477 |
fin_spans_1 = gr.HighlightedText(label="Financial Tone Analysis for PDF 1",color_map=color_map, show_legend=True)
|
478 |
|
479 |
# Analyze financial tone on each sentence using FinBERT-tone
|
480 |
-
analyze_btn1.click(fn=lambda p: process_paragraph_1_sent_tone(p), inputs=paragraph_1_dropdown, outputs=fin_spans_1
|
481 |
-
color_map=color_map, # Keep color map
|
482 |
-
show_legend=True # Keep legend
|
483 |
-
))
|
484 |
|
485 |
analyze_btn1_ = gr.Button("With ProsusAI/finbert")
|
486 |
fin_spans_1_ = gr.HighlightedText(label="Financial Tone Analysis for PDF 1 (Bis)",color_map=color_map, show_legend=True)
|
|
|
477 |
fin_spans_1 = gr.HighlightedText(label="Financial Tone Analysis for PDF 1",color_map=color_map, show_legend=True)
|
478 |
|
479 |
# Analyze financial tone on each sentence using FinBERT-tone
|
480 |
+
analyze_btn1.click(fn=lambda p: process_paragraph_1_sent_tone(p), inputs=paragraph_1_dropdown, outputs=fin_spans_1)
|
|
|
|
|
|
|
481 |
|
482 |
analyze_btn1_ = gr.Button("With ProsusAI/finbert")
|
483 |
fin_spans_1_ = gr.HighlightedText(label="Financial Tone Analysis for PDF 1 (Bis)",color_map=color_map, show_legend=True)
|