Spaces:
Runtime error
Runtime error
Zai
commited on
Commit
·
b25d941
1
Parent(s):
c2ea21f
try again
Browse files- Dockerfile +4 -7
- requirements.txt +2 -2
Dockerfile
CHANGED
@@ -10,11 +10,8 @@ COPY . /app
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
#
|
14 |
-
EXPOSE
|
15 |
|
16 |
-
#
|
17 |
-
|
18 |
-
|
19 |
-
# Run app.py when the container launches
|
20 |
-
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Expose port 8000 for Hugging Face Inference API
|
14 |
+
EXPOSE 8000
|
15 |
|
16 |
+
# Run the application when the container launches
|
17 |
+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
Django==3.2.5
|
|
|
|
|
2 |
opencv-python==4.5.3.56
|
3 |
scipy==1.7.0
|
4 |
pandas==1.3.0
|
5 |
shapely==1.7.1
|
6 |
-
torch==1.8.0
|
7 |
-
torchvision==0.9.0
|
|
|
1 |
Django==3.2.5
|
2 |
+
torch==1.8.0
|
3 |
+
torchvision==0.9.0
|
4 |
opencv-python==4.5.3.56
|
5 |
scipy==1.7.0
|
6 |
pandas==1.3.0
|
7 |
shapely==1.7.1
|
|
|
|