Fangrui Liu commited on
Commit
5733770
β€’
1 Parent(s): 55fa31f

change to docker space

Browse files
Files changed (3) hide show
  1. DockerFile +11 -0
  2. README.md +2 -3
  3. app.py +1 -1
DockerFile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ COPY . .
10
+
11
+ CMD ["python3", "app.py"]
README.md CHANGED
@@ -3,13 +3,12 @@ title: GPTs Myscale Backend RestAPI
3
  emoji: πŸ“š
4
  colorFrom: gray
5
  colorTo: gray
6
- sdk: gradio
7
- sdk_version: 2.9.1
8
  python_version: 3.10.4
9
  models:
10
  - sentence-transformers/paraphrase-multilingual-mpnet-base-v2
11
  - hkunlp/instructor-xl
12
- app_file: app.py
13
  pinned: false
14
  license: mit
15
  ---
 
3
  emoji: πŸ“š
4
  colorFrom: gray
5
  colorTo: gray
6
+ sdk: docker
7
+ app_port: 7860
8
  python_version: 3.10.4
9
  models:
10
  - sentence-transformers/paraphrase-multilingual-mpnet-base-v2
11
  - hkunlp/instructor-xl
 
12
  pinned: false
13
  license: mit
14
  ---
app.py CHANGED
@@ -88,4 +88,4 @@ class get_related_docs(Resource):
88
 
89
  if __name__ == "__main__":
90
  # print(json.dumps(api.__schema__))
91
- app.run(host="0.0.0.0", port=7860, debug=True)
 
88
 
89
  if __name__ == "__main__":
90
  # print(json.dumps(api.__schema__))
91
+ app.run(host="0.0.0.0", port=7860)