cccc commited on
Commit
af5a211
·
1 Parent(s): 553d160

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,13 +89,13 @@ def sentiment_analysis(sentence, model_name):
89
 
90
 
91
  demo = gr.Interface(fn=sentiment_analysis,
92
- inputs = [gr.Textbox(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="Sentence",lines=5),
93
  gr.Radio(choices=["RoBERTa_Chinese_AnnualReport_tuned","RoBERTa_Chinese_FinancialNews_tuned","RoBERTa_English_AnnualReport_tuned",
94
  "RoBERTa_English_FinancialNews_tuned"],
95
  label="Model Selection",
96
  max_lines = 15
97
  )],
98
- outputs=gr.Textbox(label="Sentiment",lines=5show_copy_button=True, max_lines = 15),
99
  # css = "label.svelte-1p9xokt{width:35%;}",
100
  title = "Prompt Learning-Based Disclosure Sentiment Detection"
101
  )
 
89
 
90
 
91
  demo = gr.Interface(fn=sentiment_analysis,
92
+ inputs = [gr.TextArea(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="Sentence",lines=5),
93
  gr.Radio(choices=["RoBERTa_Chinese_AnnualReport_tuned","RoBERTa_Chinese_FinancialNews_tuned","RoBERTa_English_AnnualReport_tuned",
94
  "RoBERTa_English_FinancialNews_tuned"],
95
  label="Model Selection",
96
  max_lines = 15
97
  )],
98
+ outputs=gr.TextArea(label="Sentiment",lines=5, show_copy_button=True, max_lines = 15),
99
  # css = "label.svelte-1p9xokt{width:35%;}",
100
  title = "Prompt Learning-Based Disclosure Sentiment Detection"
101
  )