REALME5-pro commited on
Commit
bdb0a6e
·
verified ·
1 Parent(s): 66222e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "mental/mental-bert-base-uncased" # Replace with the appropriate model
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