Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import numpy as np
|
|
| 6 |
|
| 7 |
|
| 8 |
def predict(text):
|
| 9 |
-
model_path = "
|
| 10 |
model = ClassificationModel('bert', model_path, use_cuda=False)
|
| 11 |
prediction, _ = model.predict([text])
|
| 12 |
return result_predict(prediction[0])
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def predict(text):
|
| 9 |
+
model_path = "bert_model"
|
| 10 |
model = ClassificationModel('bert', model_path, use_cuda=False)
|
| 11 |
prediction, _ = model.predict([text])
|
| 12 |
return result_predict(prediction[0])
|