jiang1002 commited on
Commit
b921357
·
1 Parent(s): 1291622

添加 ChatGLM-6B CPU 版本

Browse files
Files changed (2) hide show
  1. app.py +13 -0
  2. requirements.txt +6 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 创建 Dockerfile
2
+ echo "FROM python:3.9-slim
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ EXPOSE 7860
12
+
13
+ CMD [\"uvicorn\", \"app:app\", \"--host\", \"0.0.0.0\", \"--port\", \"7860\"]" > Dockerfile
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn[standard]
3
+ transformers
4
+ torch
5
+ huggingface_hub
6
+ pydantic