Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def classify_medical_text(txt):
|
|
15 |
return dict(zip(medical_categories, map(float, probs)))
|
16 |
|
17 |
# Load the psychiatric model from Hugging Face
|
18 |
-
psychiatric_model_name = "
|
19 |
psychiatric_tokenizer = AutoTokenizer.from_pretrained(psychiatric_model_name)
|
20 |
psychiatric_model = AutoModelForSequenceClassification.from_pretrained(psychiatric_model_name)
|
21 |
|
|
|
15 |
return dict(zip(medical_categories, map(float, probs)))
|
16 |
|
17 |
# Load the psychiatric model from Hugging Face
|
18 |
+
psychiatric_model_name = "nlp4good/psych-search" # Replace with the appropriate model
|
19 |
psychiatric_tokenizer = AutoTokenizer.from_pretrained(psychiatric_model_name)
|
20 |
psychiatric_model = AutoModelForSequenceClassification.from_pretrained(psychiatric_model_name)
|
21 |
|