mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-29 18:29:44 +08:00
update baichuan.py
This commit is contained in:
parent
0e20552083
commit
00745c99e2
@ -149,15 +149,15 @@ class BaiChuanWorker(ApiModelWorker):
|
||||
print(params)
|
||||
|
||||
if __name__ == "__main__":
|
||||
# import uvicorn
|
||||
# from server.utils import MakeFastAPIOffline
|
||||
# from fastchat.serve.model_worker import app
|
||||
import uvicorn
|
||||
from server.utils import MakeFastAPIOffline
|
||||
from fastchat.serve.model_worker import app
|
||||
|
||||
# worker = BaiChuanWorker(
|
||||
# controller_addr="http://127.0.0.1:20001",
|
||||
# worker_addr="http://127.0.0.1:21001",
|
||||
# )
|
||||
# sys.modules["fastchat.serve.model_worker"].worker = worker
|
||||
# MakeFastAPIOffline(app)
|
||||
# uvicorn.run(app, port=21001)
|
||||
worker = BaiChuanWorker(
|
||||
controller_addr="http://127.0.0.1:20001",
|
||||
worker_addr="http://127.0.0.1:21001",
|
||||
)
|
||||
sys.modules["fastchat.serve.model_worker"].worker = worker
|
||||
MakeFastAPIOffline(app)
|
||||
uvicorn.run(app, port=21001)
|
||||
# do_request()
|
||||
Loading…
x
Reference in New Issue
Block a user