Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,5 +8,9 @@ def classify(text):
|
|
| 8 |
cls= pipeline("text-classification", model=model)
|
| 9 |
return cls(text)[0]['label']
|
| 10 |
|
| 11 |
-
gr.Interface(fn=classify, inputs=["textbox"], outputs="text",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 8 |
cls= pipeline("text-classification", model=model)
|
| 9 |
return cls(text)[0]['label']
|
| 10 |
|
| 11 |
+
gr.Interface(fn=classify, inputs=["textbox"], outputs="text", description=main_title,
|
| 12 |
+
examples=examples,
|
| 13 |
+
theme="peach",
|
| 14 |
+
thumbnail="None",
|
| 15 |
+
css="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css").launch(debug=True)
|
| 16 |
|