Initial commit
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def trait_classifier(text: str) -> Dict[str, float]:
|
|
26 |
top_k=None) # return all possible scores (not just top-1)
|
27 |
neu_classifier = pipeline(task="text-classification",
|
28 |
# Because our model is on Hugging Face already, we can pass in the model name directly
|
29 |
-
model="kar0lina/
|
30 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
31 |
top_k=None) # return all possible scores (not just top-1)
|
32 |
ope_classifier = pipeline(task="text-classification",
|
|
|
26 |
top_k=None) # return all possible scores (not just top-1)
|
27 |
neu_classifier = pipeline(task="text-classification",
|
28 |
# Because our model is on Hugging Face already, we can pass in the model name directly
|
29 |
+
model="kar0lina/petarda-pandora1000-neu-xlm-roberta-base", # link to model on HF Hub
|
30 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
31 |
top_k=None) # return all possible scores (not just top-1)
|
32 |
ope_classifier = pipeline(task="text-classification",
|