Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

控制台调api.py报警告

Open wuhu6 opened this issue 1 year ago • 10 comments

you must pass the application as an import string to enable "reload" or "workers"

这是啥原因呢

wuhu6 avatar Apr 26 '23 09:04 wuhu6

+1。项目怎么老是报错,之前还好好的

cristianohello avatar Apr 26 '23 09:04 cristianohello

请问方便提供一下具体报错截图吗

imClumsyPanda avatar Apr 26 '23 09:04 imClumsyPanda

image

wuhu6 avatar Apr 26 '23 09:04 wuhu6

执行api.py脚本,就报错。很奇怪,之前好好的

cristianohello avatar Apr 26 '23 09:04 cristianohello

执行api.py脚本,就报错。很奇怪,之前好好的

你是之前api.py能用吗?

wuhu6 avatar Apr 26 '23 09:04 wuhu6

一星期前的老版本能用,现在的新版本不能用

cristianohello avatar Apr 26 '23 10:04 cristianohello

这个能解决启动问题,但是后续还有别的问题

if name == "main": uvicorn.run( app="mp_main:app", host='0.0.0.0', port=8082, reload=True, )

JohnHello avatar Apr 26 '23 10:04 JohnHello

@imClumsyPanda 这个api.py脚本错误修复了吗?

cristianohello avatar Apr 27 '23 01:04 cristianohello

@JohnHello 还有什么问题?

cristianohello avatar Apr 27 '23 01:04 cristianohello

if name == "main": import uvicorn uvicorn.run( app='api:app', host='0.0.0.0', port=8100, reload=True )

kinget007 avatar Apr 28 '23 15:04 kinget007