Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,13 +13,7 @@ def analyze_sentiment(input_text):
|
|
13 |
"Model 2": f"{result2['label']} ({result2['score']:.2f})"}
|
14 |
|
15 |
# Create the Gradio interface
|
16 |
-
iface = gr.Interface(
|
17 |
-
fn=analyze_sentiment,
|
18 |
-
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
19 |
-
outputs=[gr.outputs.Textbox(label="mrm"), gr.outputs.Textbox(label="mr")],
|
20 |
-
title="Financial News Sentiment Analysis Models Comparison",
|
21 |
-
description="Compare sentiment analysis results of two models."
|
22 |
-
)
|
23 |
|
24 |
# Launch the interface
|
25 |
iface.launch()
|
|
|
13 |
"Model 2": f"{result2['label']} ({result2['score']:.2f})"}
|
14 |
|
15 |
# Create the Gradio interface
|
16 |
+
iface = gr.Interface(fn=analyze_sentiment, inputs="text", outputs="text", title="Sentiment Analysis", description="Enter a sentence to analyze its sentiment using two different models.", layout="vertical", interpretation="default")
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
# Launch the interface
|
19 |
iface.launch()
|