Kaelan commited on
Commit
20fc851
·
1 Parent(s): a63efae

add package versions

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -2
  2. app.py +5 -3
  3. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM python:3.10-bullseye
 
2
 
3
  RUN apt-get update && apt-get install -y \
4
  build-essential \
@@ -8,7 +9,7 @@ RUN apt-get update && apt-get install -y \
8
  && pip install --upgrade pip \
9
  && apt clean && rm -rf /var/lib/apt/lists/*
10
 
11
- RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
12
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
 
1
+ #FROM python:3.10-bullseye
2
+ FROM python:3.9-slim
3
 
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
 
9
  && pip install --upgrade pip \
10
  && apt clean && rm -rf /var/lib/apt/lists/*
11
 
12
+ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 libx264-dev -y
13
 
14
  # Set up a new user named "user" with user ID 1000
15
  RUN useradd -m -u 1000 user
app.py CHANGED
@@ -205,7 +205,9 @@ def vid_predict(media):
205
 
206
  return save_to
207
 
208
- demo = gr.Interface(fn=vid_predict, inputs=gr.Video(), outputs=gr.Video(), examples=examples, description=description, title='Fall detection and tracking with deep sort')
209
-
 
 
210
  if __name__ == "__main__":
211
- demo.launch(show_error=True)
 
205
 
206
  return save_to
207
 
208
+ def run():
209
+ demo = gr.Interface(fn=vid_predict, inputs=gr.Video(format='mp4'), outputs=gr.Video(), examples=examples, description=description, title='Fall detection and tracking with deep sort')
210
+ demo.launch(server_name="0.0.0.0",server_port=7860)
211
+
212
  if __name__ == "__main__":
213
+ run()
requirements.txt CHANGED
@@ -149,7 +149,7 @@ traitlets==5.10.1
149
  treelib==1.6.1
150
  triton==2.1.0
151
  typing_extensions==4.8.0
152
- urllib3==2.0.7
153
  wcwidth==0.2.6
154
  websockets==11.0.3
155
  Werkzeug
 
149
  treelib==1.6.1
150
  triton==2.1.0
151
  typing_extensions==4.8.0
152
+ urllib3>=1.25.4
153
  wcwidth==0.2.6
154
  websockets==11.0.3
155
  Werkzeug