#1 修改监听接口

Đã hợp nhất
xueyiming đã nhập 1 commit từ algorithm/dev-xym-update vào [3]s 1 ngày trước cách đây
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 1
      main.py
  2. 2 0
      requirements.txt

+ 1 - 1
main.py

@@ -67,4 +67,4 @@ async def lifespan(app: FastAPI):
 if __name__ == "__main__":
     import uvicorn
     os.environ['RAG_ENV'] = 'prod'
-    uvicorn.run(app, host="127.0.0.1", port=5000)
+    uvicorn.run(app, host="0.0.0.0", port=5000)

+ 2 - 0
requirements.txt

@@ -7,3 +7,5 @@ python-dotenv==1.0.1
 loguru==0.7.3
 sqlalchemy==2.0.43
 uvicorn==0.29.0
+pyyaml==6.0.2
+mysql-connector-python==9.4.0