Spaces:
Sleeping
Sleeping
Fishead_East
commited on
Commit
•
e31269d
1
Parent(s):
8dfc133
debug:读取json文件
Browse files- chat_poets/get_path.py +1 -1
chat_poets/get_path.py
CHANGED
@@ -19,7 +19,7 @@ def get_prompts_path(filename: str) -> str:
|
|
19 |
rootPath = curPath[:curPath.find("PoetryChat") + len("PoetryChat")]
|
20 |
return rootPath + f"/chat_poets/{filename}"
|
21 |
else: # linux部署
|
22 |
-
rootPath = curPath[:curPath.find("
|
23 |
return rootPath + f"/chat_poets/{filename}"
|
24 |
|
25 |
|
|
|
19 |
rootPath = curPath[:curPath.find("PoetryChat") + len("PoetryChat")]
|
20 |
return rootPath + f"/chat_poets/{filename}"
|
21 |
else: # linux部署
|
22 |
+
rootPath = curPath[:curPath.find("app") + len("app")]
|
23 |
return rootPath + f"/chat_poets/{filename}"
|
24 |
|
25 |
|