Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,7 @@ import gradio as grad
|
|
| 3 |
zero_shot_classifier = pipeline("zero-shot-classification")
|
| 4 |
def classify(text,labels):
|
| 5 |
classifer_labels = labels.split(",")
|
| 6 |
-
#["software", "politics", "love", "movies", "emergency",
|
| 7 |
-
"advertisment","sports"]
|
| 8 |
response = zero_shot_classifier(text,classifer_labels)
|
| 9 |
return response
|
| 10 |
txt=grad.Textbox(lines=1, label="English", placeholder="text to be classified")
|
|
|
|
| 3 |
zero_shot_classifier = pipeline("zero-shot-classification")
|
| 4 |
def classify(text,labels):
|
| 5 |
classifer_labels = labels.split(",")
|
| 6 |
+
#["software", "politics", "love", "movies", "emergency", "advertisment","sports"]
|
|
|
|
| 7 |
response = zero_shot_classifier(text,classifer_labels)
|
| 8 |
return response
|
| 9 |
txt=grad.Textbox(lines=1, label="English", placeholder="text to be classified")
|