Skip to content

Commit 850bbca

Browse files
committed
fix bug
1 parent e490aee commit 850bbca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fastapi4modelcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ async def user_backend(request: Request):
183183

184184
# TODO: 可以修改为在命令行中使用`uvicorn your_module_name:app --host 0.0.0.0 --port 5000 --reload`的命令启动
185185
if __name__ == '__main__':
186-
uvicorn.run(app, host='0.0.0.0', port=5001)
186+
uvicorn.run(app, host='0.0.0.0', port=5000)

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ transformers==4.38.2
1212
faiss-cpu==1.7.4
1313
redis==5.0.1
1414
modelscope==1.14.0
15-
fastapi==0.115.5
15+
fastapi==0.115.5
16+
uvicorn==0.32.0

0 commit comments

Comments
 (0)