Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,10 +75,12 @@ def sentiment_analysis(sentence, model_name):
|
|
| 75 |
|
| 76 |
|
| 77 |
demo = gr.Interface(fn=sentiment_analysis,
|
| 78 |
-
inputs = [gr.Textbox(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="
|
| 79 |
gr.Radio(choices=["ARCH_Tuned_RoBERTa","FNCH_Tuned_RoBERTa","AREN_Tuned_RoBERTa",
|
| 80 |
-
"FNEN_Tuned_RoBERTa","bert-base-uncased"], label="
|
| 81 |
-
outputs=gr.Textbox(label="
|
|
|
|
|
|
|
| 82 |
)
|
| 83 |
|
| 84 |
demo.launch()
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
demo = gr.Interface(fn=sentiment_analysis,
|
| 78 |
+
inputs = [gr.Textbox(placeholder="Enter sentence here. If you have multiple sentences, separate them with '\\n'.",label="Sentence",lines=5),
|
| 79 |
gr.Radio(choices=["ARCH_Tuned_RoBERTa","FNCH_Tuned_RoBERTa","AREN_Tuned_RoBERTa",
|
| 80 |
+
"FNEN_Tuned_RoBERTa","bert-base-uncased"], label="Model Selection")],
|
| 81 |
+
outputs=gr.Textbox(label="Sentiment",lines=5),
|
| 82 |
+
css = "label.svelte-1p9xokt{width:35%;}",
|
| 83 |
+
title = "Sentiment Analysis Based on Prompt-tuned PLM"
|
| 84 |
)
|
| 85 |
|
| 86 |
demo.launch()
|