Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load sentiment analysis pipeline
|
5 |
-
classifier_pipeline = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
|
|
6 |
|
7 |
# Define classification function
|
8 |
def classify_text(text):
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load sentiment analysis pipeline
|
5 |
+
# classifier_pipeline = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
6 |
+
classifier_pipeline = ("sentiment-analysis")
|
7 |
|
8 |
# Define classification function
|
9 |
def classify_text(text):
|