Spaces:
Running
Running
fahadcr14
commited on
Commit
·
e0b3bfe
1
Parent(s):
284e5b8
V1
Browse files- Dockerfile +2 -1
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -13,4 +13,5 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
| 16 |
-
|
|
|
|
|
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
| 16 |
+
# Use Gunicorn to run your Flask app
|
| 17 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|
requirements.txt
CHANGED
|
@@ -3,3 +3,4 @@ Werkzeug==3.0.2
|
|
| 3 |
torch==2.5.1
|
| 4 |
torchvision==0.20.1
|
| 5 |
Pillow==10.3.0
|
|
|
|
|
|
| 3 |
torch==2.5.1
|
| 4 |
torchvision==0.20.1
|
| 5 |
Pillow==10.3.0
|
| 6 |
+
gunicorn
|