fixed cannot launch api.py

pull/219/head
zerodegress 2023-03-24 15:10:34 +08:00
parent 28665ade15
commit b58ed731f2
1 changed files with 1 additions and 1 deletions

2
api.py
View File

@ -28,7 +28,7 @@ async def create_item(request: Request):
if __name__ == '__main__':
uvicorn.run('API:app', host='0.0.0.0', port=8000, workers=1)
uvicorn.run('api:app', host='0.0.0.0', port=8000, workers=1)
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
model = AutoModel.from_pretrained("THUDM/chatglm_6b", trust_remote_code=True).half().cuda()