pjgerrits commited on
Commit
b99e6b9
·
2 Parent(s): 10a79e2 6022947
Files changed (3) hide show
  1. Dockerfile +11 -0
  2. README.md +1 -0
  3. requirements.txt +3 -12
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.8
2
+
3
+
4
+ WORKDIR /workspace
5
+ ADD . /workspace
6
+
7
+
8
+ RUN pip install -r requirements.txt
9
+
10
+ CMD [ "python" , "/workspace/app.py" , " — host", "127.0.0.1", " — port", "5000" ]
11
+
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: red
6
  sdk: docker
7
  pinned: false
8
  license: apache-2.0
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: apache-2.0
9
+ app_port: 7860
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
requirements.txt CHANGED
@@ -1,15 +1,6 @@
1
  # This file may be used to create an environment using:
2
  # $ conda create --name <env> --file <this file>
3
  # platform: osx-64
4
- dataclasses
5
- flask==2.0.3
6
- itsdangerous==2.0.1
7
- jinja2==3.0.3
8
- krb5
9
- markupsafe
10
- psycopg2
11
- readline
12
- setuptools
13
- tk
14
- werkzeug
15
- wheel
 
1
  # This file may be used to create an environment using:
2
  # $ conda create --name <env> --file <this file>
3
  # platform: osx-64
4
+ Flask==2.1.2
5
+ Werkzeug==2.1.2
6
+ psycopg2-binary==2.9.3