Cachoups commited on
Commit
a0e9b39
·
verified ·
1 Parent(s): f203192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -456,7 +456,7 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
456
  summarize_btn1.click(fn=lambda p: process_paragraph_1_sum(p), inputs=paragraph_1_dropdown, outputs=summary_textbox_1)
457
 
458
  sentiment_btn1 = gr.Button("Classify Financial Tone from PDF 1")
459
- sentiment_textbox_1 = gr.Label(label="Classification for PDF 1", lines=1)
460
 
461
  # Classify the financial tone of the selected paragraph from PDF 1
462
  sentiment_btn1.click(fn=lambda p: process_paragraph_1_sent(p), inputs=paragraph_1_dropdown, outputs=sentiment_textbox_1)
@@ -490,7 +490,7 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
490
  summarize_btn2.click(fn=lambda p: process_paragraph_2_sum(p), inputs=paragraph_2_dropdown, outputs=summary_textbox_2)
491
 
492
  sentiment_btn2 = gr.Button("Classify Financial Tone from PDF 2")
493
- sentiment_textbox_2 = gr.Textbox(label="Classification for PDF 2", lines=1)
494
 
495
  # Classify the financial tone of the selected paragraph from PDF 2
496
  sentiment_btn2.click(fn=lambda p: process_paragraph_2_sent(p), inputs=paragraph_2_dropdown, outputs=sentiment_textbox_2)
 
456
  summarize_btn1.click(fn=lambda p: process_paragraph_1_sum(p), inputs=paragraph_1_dropdown, outputs=summary_textbox_1)
457
 
458
  sentiment_btn1 = gr.Button("Classify Financial Tone from PDF 1")
459
+ sentiment_textbox_1 = gr.Label(label="Classification for PDF 1")
460
 
461
  # Classify the financial tone of the selected paragraph from PDF 1
462
  sentiment_btn1.click(fn=lambda p: process_paragraph_1_sent(p), inputs=paragraph_1_dropdown, outputs=sentiment_textbox_1)
 
490
  summarize_btn2.click(fn=lambda p: process_paragraph_2_sum(p), inputs=paragraph_2_dropdown, outputs=summary_textbox_2)
491
 
492
  sentiment_btn2 = gr.Button("Classify Financial Tone from PDF 2")
493
+ sentiment_textbox_2 = gr.Label(label="Classification for PDF 2")
494
 
495
  # Classify the financial tone of the selected paragraph from PDF 2
496
  sentiment_btn2.click(fn=lambda p: process_paragraph_2_sent(p), inputs=paragraph_2_dropdown, outputs=sentiment_textbox_2)