MindSearch
MindSearch copied to clipboard
运行后端后,没有自动下载模型,没有报错,启动前端后也没有报错
与 #163 类似。
环境为CentOS7, 显卡为多个V100.
成功安装程序后,运行python -m mindsearch.app,显示如下:
INFO: Started server process [25434]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8002 (Press CTRL+C to quit)
用python frontend/mindsearch_gradio.py能够打开前端,进入前端页面。但敲字并submit会进入一直计时,没有输出。
/PATH/mambaforge-pypy3/envs/mindsearch/lib/python3.10/site-packages/gradio/routes.py:1214: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
@app.on_event("startup")
/PATH/mambaforge-pypy3/envs/mindsearch/lib/python3.10/site-packages/fastapi/applications.py:4495: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
return self.router.on_event(event_type)
Running on local URL: http://10.9.1.41:37882
2024/09/02 16:36:32 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: connect: connection refused
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
整个运行过程中,前端、后端没有新的信息输出,也没有 #163 提到的如下输出。
HINT: Please open http://0.0.0.0:PORT in a browser for detailed api usage!!!
此外,整个项目文件夹大小也没有明显变化,为7MB左右。
请问怎么解决?如果需要提供其他信息,请告诉我,非常感谢!
login to server failed: dial tcp 44.237.78.176:7000: connect: connection refused 看到有一个 connect refused 应该是前端ping不通后端的服务
这个应该是gradio自动使用的一个公网地址,请求获得一个公网链接,是demo设置share=True的产物,与前后端链接无关。 而且前后端都在一台设备上,不太可能由于这个问题导致失败吧。
可以在浏览器里直接访问 app.py 启动的服务的 URL 看看是不是能访问 IP 地址改成 localhost或者具体IP地址