Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def process(text):
|
|
| 18 |
"""
|
| 19 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
| 20 |
result = pipe(text)[0]
|
| 21 |
-
return
|
| 22 |
|
| 23 |
|
| 24 |
tokenizer, model = prepare_model()
|
|
|
|
| 18 |
"""
|
| 19 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
| 20 |
result = pipe(text)[0]
|
| 21 |
+
return result'label']
|
| 22 |
|
| 23 |
|
| 24 |
tokenizer, model = prepare_model()
|