更换path
Browse files
app.py
CHANGED
@@ -22,12 +22,11 @@ else:
|
|
22 |
# response = requests.post(API_URL, headers=headers, json=payload)
|
23 |
# return response.json()
|
24 |
# data = query("Can you please let us know more details about your ")
|
25 |
-
path =
|
26 |
tokenizer = AutoTokenizer.from_pretrained(path, cache_dir='/home/user', token=huggingface_token)
|
27 |
|
28 |
# tokenizer = AutoTokenizer.from_pretrained('Tokymin/Mood_Anxiety_Disorder_Classify_Model')
|
29 |
-
model = AutoModelForSequenceClassification.from_pretrained("Tokymin/Mood_Anxiety_Disorder_Classify_Model",
|
30 |
-
num_labels=8)
|
31 |
model.eval()
|
32 |
|
33 |
|
|
|
22 |
# response = requests.post(API_URL, headers=headers, json=payload)
|
23 |
# return response.json()
|
24 |
# data = query("Can you please let us know more details about your ")
|
25 |
+
path = os.PathLike('Tokymin/Mood_Anxiety_Disorder_Classify_Model')
|
26 |
tokenizer = AutoTokenizer.from_pretrained(path, cache_dir='/home/user', token=huggingface_token)
|
27 |
|
28 |
# tokenizer = AutoTokenizer.from_pretrained('Tokymin/Mood_Anxiety_Disorder_Classify_Model')
|
29 |
+
model = AutoModelForSequenceClassification.from_pretrained("Tokymin/Mood_Anxiety_Disorder_Classify_Model",num_labels=8)
|
|
|
30 |
model.eval()
|
31 |
|
32 |
|