Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,8 @@ def sentiment_analysis(sentence, model_name):
|
|
| 86 |
|
| 87 |
demo = gr.Interface(fn=sentiment_analysis,
|
| 88 |
inputs = [gr.Textbox(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="Sentence",lines=5),
|
| 89 |
-
gr.Radio(choices=["RoBERTa_Chinese_AnnualReport_tuned","
|
| 90 |
-
"
|
| 91 |
outputs=gr.Textbox(label="Sentiment",lines=5),
|
| 92 |
# css = "label.svelte-1p9xokt{width:35%;}",
|
| 93 |
title = "Prompt Learning-Based Disclosure Sentiment Detection"
|
|
|
|
| 86 |
|
| 87 |
demo = gr.Interface(fn=sentiment_analysis,
|
| 88 |
inputs = [gr.Textbox(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="Sentence",lines=5),
|
| 89 |
+
gr.Radio(choices=["RoBERTa_Chinese_AnnualReport_tuned","RoBERTa_Chinese_FinancialNews_tuned","RoBERTa_English_AnnualReport_tuned",
|
| 90 |
+
"RoBERTa_English_FinancialNews_tuned"], label="Model Selection")],
|
| 91 |
outputs=gr.Textbox(label="Sentiment",lines=5),
|
| 92 |
# css = "label.svelte-1p9xokt{width:35%;}",
|
| 93 |
title = "Prompt Learning-Based Disclosure Sentiment Detection"
|