Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,19 +80,17 @@ with gr.Blocks(title="Multilingual Stance Detection", theme=gr.themes.Soft()) as
|
|
| 80 |
# 🌍 Multilingual Political Stance Detection
|
| 81 |
|
| 82 |
This model predicts whether a comment **supports (FAVOR)** or **opposes (AGAINST)** a given political question.
|
| 83 |
-
It works across multiple languages: 🇩🇪 German, 🇫🇷 French, 🇮🇹 Italian
|
| 84 |
""")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
with gr.Column():
|
| 88 |
question_input = gr.Textbox(
|
| 89 |
label="🗳️ Political Question",
|
| 90 |
-
placeholder="e.g., Should Switzerland ban nuclear power plants?",
|
| 91 |
lines=3
|
| 92 |
)
|
| 93 |
comment_input = gr.Textbox(
|
| 94 |
label="💬 Comment",
|
| 95 |
-
placeholder="e.g., Renewable energy should replace nuclear power because it is safer and more sustainable.",
|
| 96 |
lines=5
|
| 97 |
)
|
| 98 |
submit_btn = gr.Button("🔍 Analyze Stance", variant="primary")
|
|
@@ -107,10 +105,6 @@ with gr.Blocks(title="Multilingual Stance Detection", theme=gr.themes.Soft()) as
|
|
| 107 |
# Example inputs
|
| 108 |
gr.Examples(
|
| 109 |
examples=[
|
| 110 |
-
["Should Switzerland ban nuclear power plants?",
|
| 111 |
-
"Renewable energy should replace nuclear power because it is safer and more sustainable."],
|
| 112 |
-
["Should Switzerland join the European Union?",
|
| 113 |
-
"Switzerland must maintain its independence and neutrality at all costs."],
|
| 114 |
["Sollte die Schweiz erneuerbare Energien stärker fördern?",
|
| 115 |
"Investitionen in erneuerbare Energien reduzieren Emissionen und verbessern die Energieunabhängigkeit."],
|
| 116 |
["La Suisse devrait-elle augmenter les subventions pour les transports publics?",
|
|
|
|
| 80 |
# 🌍 Multilingual Political Stance Detection
|
| 81 |
|
| 82 |
This model predicts whether a comment **supports (FAVOR)** or **opposes (AGAINST)** a given political question.
|
| 83 |
+
It works across multiple languages: 🇩🇪 German, 🇫🇷 French, and 🇮🇹 Italian.
|
| 84 |
""")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
with gr.Column():
|
| 88 |
question_input = gr.Textbox(
|
| 89 |
label="🗳️ Political Question",
|
|
|
|
| 90 |
lines=3
|
| 91 |
)
|
| 92 |
comment_input = gr.Textbox(
|
| 93 |
label="💬 Comment",
|
|
|
|
| 94 |
lines=5
|
| 95 |
)
|
| 96 |
submit_btn = gr.Button("🔍 Analyze Stance", variant="primary")
|
|
|
|
| 105 |
# Example inputs
|
| 106 |
gr.Examples(
|
| 107 |
examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
["Sollte die Schweiz erneuerbare Energien stärker fördern?",
|
| 109 |
"Investitionen in erneuerbare Energien reduzieren Emissionen und verbessern die Energieunabhängigkeit."],
|
| 110 |
["La Suisse devrait-elle augmenter les subventions pour les transports publics?",
|