parkerjj commited on
Commit
fe0aec3
1 Parent(s): 8d84024

Change to Gradio

Browse files
Files changed (3) hide show
  1. Dockerfile +16 -0
  2. README.md +2 -2
  3. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # 设置工作目录
4
+ WORKDIR /app
5
+
6
+ # 复制项目文件
7
+ COPY . .
8
+
9
+ # 安装依赖
10
+ RUN pip install -r requirements.txt
11
+
12
+ # 暴露应用端口
13
+ EXPOSE 63468
14
+
15
+ # 运行应用
16
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,8 +3,8 @@ title: BuckLakeAI
3
  emoji: 🏢
4
  colorFrom: blue
5
  colorTo: yellow
6
- sdk: streamlit
7
- sdk_version: 1.40.1
8
  app_file: app.py
9
  pinned: false
10
  license: unknown
 
3
  emoji: 🏢
4
  colorFrom: blue
5
  colorTo: yellow
6
+ sdk: gradio
7
+ sdk_version: 3.28.3
8
  app_file: app.py
9
  pinned: false
10
  license: unknown
app.py CHANGED
@@ -41,4 +41,4 @@ app = gr.mount_gradio_app(app, iface, path="/gradio")
41
  # 启动应用
42
  if __name__ == "__main__":
43
  import uvicorn
44
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
41
  # 启动应用
42
  if __name__ == "__main__":
43
  import uvicorn
44
+ uvicorn.run(app, host="0.0.0.0", port=63468)