mani880740255 commited on
Commit
b2b551a
·
verified ·
1 Parent(s): 9fd2c00

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile (1) +22 -0
  2. README (1).md +12 -0
  3. requirements (1).txt +10 -0
Dockerfile (1) ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ ffmpeg \
11
+ libsm6 \
12
+ libxext6 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ COPY . .
19
+
20
+ EXPOSE 7860
21
+
22
+ CMD ["gunicorn", "hostingg.app:app", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120"]
README (1).md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Mobilenetv2
3
+ emoji: 🐠
4
+ colorFrom: red
5
+ colorTo: gray
6
+ sdk: docker
7
+ pinned: false
8
+ license: apache-2.0
9
+ short_description: nothingforus
10
+ ---
11
+
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
requirements (1).txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ flask
2
+ flask-cors
3
+ gunicorn
4
+ numpy
5
+ pillow
6
+ opencv-python-headless
7
+ torch
8
+ torchvision
9
+ tensorflow-cpu
10
+ requests