Spaces:
Running
Running
fix for predict
Browse files- interfaces/sentiment.py +1 -1
interfaces/sentiment.py
CHANGED
@@ -43,7 +43,7 @@ def predict(text, model_id, tokenizer_id):
|
|
43 |
output_info = f'<p style="text-align: center; display: block">Prediction was made using the <a href="https://huggingface.co/{model_id}">{model_id}</a> model.</p>'
|
44 |
return output_pred, output_info
|
45 |
|
46 |
-
def predict_cap(text, language):
|
47 |
model_id = build_huggingface_path(language)
|
48 |
tokenizer_id = "xlm-roberta-large"
|
49 |
return predict(text, model_id, tokenizer_id)
|
|
|
43 |
output_info = f'<p style="text-align: center; display: block">Prediction was made using the <a href="https://huggingface.co/{model_id}">{model_id}</a> model.</p>'
|
44 |
return output_pred, output_info
|
45 |
|
46 |
+
def predict_cap(text, language, domain):
|
47 |
model_id = build_huggingface_path(language)
|
48 |
tokenizer_id = "xlm-roberta-large"
|
49 |
return predict(text, model_id, tokenizer_id)
|