Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,5 @@ def classify(text):
|
|
7 |
cls= pipeline("text-classification", model=model)
|
8 |
return cls(text)[0]['label']
|
9 |
|
10 |
-
gr.Interface(fn=classify, inputs=["textbox"], outputs="text").launch(debug=True)
|
11 |
|
|
|
7 |
cls= pipeline("text-classification", model=model)
|
8 |
return cls(text)[0]['label']
|
9 |
|
10 |
+
gr.Interface(fn=classify, inputs=["textbox"], outputs="text", examples=examples).launch(debug=True)
|
11 |
|