wznmickey commited on
Commit
ec7dc61
1 Parent(s): 7f27bb8
Files changed (3) hide show
  1. Dockerfile +11 -0
  2. README.md +2 -3
  3. requirements.txt +2 -0
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 ["gunicorn","-b","0.0.0.0:7860", "app:app"]
README.md CHANGED
@@ -3,10 +3,9 @@ title: MagicPromt
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: 2.9.1
8
  pinned: false
9
- app_file: app.py
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: purple
6
+ sdk: docker
 
7
  pinned: false
8
+ app_port: 7860
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
requirements.txt CHANGED
@@ -16,3 +16,5 @@ tqdm==4.66.1
16
  tzdata==2023.3
17
  Werkzeug==3.0.1
18
  requests==2.31.0
 
 
 
16
  tzdata==2023.3
17
  Werkzeug==3.0.1
18
  requests==2.31.0
19
+
20
+ gunicorn