还是path的问题
Browse files
app.py
CHANGED
|
@@ -17,10 +17,11 @@ else:
|
|
| 17 |
print("error, no token")
|
| 18 |
exit(0)
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
path: Path = Path('Tokymin/Mood_Anxiety_Disorder_Classify_Model')
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=path, cache_dir='/home/user', token=huggingface_token)
|
| 26 |
|
|
|
|
| 17 |
print("error, no token")
|
| 18 |
exit(0)
|
| 19 |
|
| 20 |
+
def query(payload):
|
| 21 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
| 22 |
+
return response.json()
|
| 23 |
+
data = query("Can you please let us know more details about your ")
|
| 24 |
+
st.write(data)
|
| 25 |
path: Path = Path('Tokymin/Mood_Anxiety_Disorder_Classify_Model')
|
| 26 |
tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=path, cache_dir='/home/user', token=huggingface_token)
|
| 27 |
|