Spaces:
Running
Running
vlff李飞飞
commited on
Commit
·
b6a7ec0
1
Parent(s):
4ec8897
更新oai
Browse files- qwen_server/database_server.py +2 -3
- run_server.py +1 -1
qwen_server/database_server.py
CHANGED
@@ -84,8 +84,7 @@ async def web_listening(request: Request):
|
|
84 |
data = await request.json()
|
85 |
msg_type = data['task']
|
86 |
|
87 |
-
cache_file_popup_url = os.path.join(server_config.path.cache_root,
|
88 |
-
'popup_url.jsonl')
|
89 |
cache_file = os.path.join(server_config.path.cache_root, 'browse.jsonl')
|
90 |
|
91 |
if msg_type == 'change_checkbox':
|
@@ -118,4 +117,4 @@ if __name__ == '__main__':
|
|
118 |
uvicorn.run(app='database_server:app',
|
119 |
host=server_config.server.server_host,
|
120 |
port=server_config.server.fast_api_port,
|
121 |
-
reload=
|
|
|
84 |
data = await request.json()
|
85 |
msg_type = data['task']
|
86 |
|
87 |
+
cache_file_popup_url = os.path.join(server_config.path.cache_root, 'popup_url.jsonl')
|
|
|
88 |
cache_file = os.path.join(server_config.path.cache_root, 'browse.jsonl')
|
89 |
|
90 |
if msg_type == 'change_checkbox':
|
|
|
117 |
uvicorn.run(app='database_server:app',
|
118 |
host=server_config.server.server_host,
|
119 |
port=server_config.server.fast_api_port,
|
120 |
+
reload=False, workers=1)
|
run_server.py
CHANGED
@@ -10,7 +10,7 @@ from pathlib import Path
|
|
10 |
from qwen_agent.log import logger
|
11 |
from qwen_agent.utils.utils import get_local_ip
|
12 |
from qwen_server.schema import GlobalConfig
|
13 |
-
os.environ["TRANSFORMERS_CACHE"] = ".cache/huggingface/"
|
14 |
os.environ["HF_HOME"] = ".cache/huggingface/"
|
15 |
os.environ["MPLCONFIGDIR"] = ".cache/huggingface/"
|
16 |
|
|
|
10 |
from qwen_agent.log import logger
|
11 |
from qwen_agent.utils.utils import get_local_ip
|
12 |
from qwen_server.schema import GlobalConfig
|
13 |
+
# os.environ["TRANSFORMERS_CACHE"] = ".cache/huggingface/"
|
14 |
os.environ["HF_HOME"] = ".cache/huggingface/"
|
15 |
os.environ["MPLCONFIGDIR"] = ".cache/huggingface/"
|
16 |
|