Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,14 +89,15 @@ def sentiment_analysis(sentence, model_name):
|
|
| 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'.",
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
"RoBERTa_English_FinancialNews_tuned"],
|
| 95 |
-
label="Model Selection",
|
| 96 |
-
max_lines = 10
|
| 97 |
-
)],
|
| 98 |
outputs=gr.TextArea(label="Sentiment",lines=5, show_copy_button=True, max_lines = 10),
|
| 99 |
-
# css = "label.svelte-1p9xokt{width:35%;}",
|
| 100 |
title = "Prompt Learning-Based Disclosure Sentiment Detection"
|
| 101 |
)
|
| 102 |
|
|
|
|
| 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'.",
|
| 93 |
+
label="Sentence",lines=5,
|
| 94 |
+
max_lines = 10),
|
| 95 |
+
gr.Radio(choices=["RoBERTa_Chinese_AnnualReport_tuned",
|
| 96 |
+
"RoBERTa_Chinese_FinancialNews_tuned",
|
| 97 |
+
"RoBERTa_English_AnnualReport_tuned",
|
| 98 |
"RoBERTa_English_FinancialNews_tuned"],
|
| 99 |
+
label="Model Selection")],
|
|
|
|
|
|
|
| 100 |
outputs=gr.TextArea(label="Sentiment",lines=5, show_copy_button=True, max_lines = 10),
|
|
|
|
| 101 |
title = "Prompt Learning-Based Disclosure Sentiment Detection"
|
| 102 |
)
|
| 103 |
|