Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,6 @@ model = 'mrm8488/electricidad-small-finetuned-amazon-review-classification'
|
|
5 |
|
6 |
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)
|
|
|
5 |
|
6 |
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)
|