Spaces:
Runtime error
Runtime error
Commit
·
e1ffd40
1
Parent(s):
b442b87
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the zero-shot classification pipeline
|
5 |
-
classifier = pipeline("zero-shot-classification")
|
6 |
|
7 |
# Function to perform classification
|
8 |
def classify_text(text, candidate_labels):
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the zero-shot classification pipeline
|
5 |
+
classifier = pipeline("zero-shot-classification", model="DAMO-NLP-SG/zero-shot-classify-SSTuning-XLM-R")
|
6 |
|
7 |
# Function to perform classification
|
8 |
def classify_text(text, candidate_labels):
|