Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def classify(text, labelsls):
|
|
| 9 |
response = zero_shot_classifier(text, classifier_labels)
|
| 10 |
return response
|
| 11 |
|
| 12 |
-
txt = grad.
|
| 13 |
-
labels=grad.
|
| 14 |
-
out = grad.
|
| 15 |
grad.Interface(classify, inputs=[txt, labels], outputs=out).launch()
|
|
|
|
| 9 |
response = zero_shot_classifier(text, classifier_labels)
|
| 10 |
return response
|
| 11 |
|
| 12 |
+
txt = grad.Textbox(lines=1, label="English", placeholder="text to be classified")
|
| 13 |
+
labels=grad.Textbox(lines=1, label="Labels", placeholder="comma separated labels")
|
| 14 |
+
out = grad.Textbox(lines=1, label="Classification")
|
| 15 |
grad.Interface(classify, inputs=[txt, labels], outputs=out).launch()
|