Duha commited on
Commit
20dfd0f
·
1 Parent(s): 08b0ae4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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")