Spaces:
Running
Running
vlff李飞飞
commited on
Commit
·
5779080
1
Parent(s):
2b17e2a
更新oai
Browse files
qwen_server/database_server.py
CHANGED
@@ -79,10 +79,8 @@ async def healthz(request: Request):
|
|
79 |
return JSONResponse({"healthz": True})
|
80 |
|
81 |
|
82 |
-
@app.get('/cachedata')
|
83 |
-
async def cache_data(
|
84 |
-
data = await request.json()
|
85 |
-
file_name = data['file_name']
|
86 |
cache_file = os.path.join(server_config.path.cache_root, file_name)
|
87 |
lines = []
|
88 |
for line in jsonlines.open(cache_file):
|
|
|
79 |
return JSONResponse({"healthz": True})
|
80 |
|
81 |
|
82 |
+
@app.get('/cachedata/{file_name}')
|
83 |
+
async def cache_data(file_name: str):
|
|
|
|
|
84 |
cache_file = os.path.join(server_config.path.cache_root, file_name)
|
85 |
lines = []
|
86 |
for line in jsonlines.open(cache_file):
|