Spaces:
Sleeping
Sleeping
add app
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def predict(model_name, text):
|
|
| 41 |
pipe = TextClassificationPipeline(
|
| 42 |
model = model,
|
| 43 |
tokenizer = tokenizer,
|
| 44 |
-
return_all_scores=
|
| 45 |
function_to_apply='sigmoid'
|
| 46 |
)
|
| 47 |
|
|
|
|
| 41 |
pipe = TextClassificationPipeline(
|
| 42 |
model = model,
|
| 43 |
tokenizer = tokenizer,
|
| 44 |
+
return_all_scores=True,
|
| 45 |
function_to_apply='sigmoid'
|
| 46 |
)
|
| 47 |
|