ArnoBen commited on
Commit
d11643d
·
1 Parent(s): c5e9575

Upgrading all packages

Browse files
Files changed (3) hide show
  1. README.md +13 -15
  2. app.py +2 -3
  3. requirements.txt +13 -15
README.md CHANGED
@@ -13,21 +13,19 @@ app_file: app.py
13
 
14
  ## Packages
15
  ```requirements.txt
16
- gradio==3.17.1
17
- matplotlib==3.5.2
18
- mediapipe==0.9.0.1
19
- numpy==1.21.5
20
- opencv-contrib-python==4.6.0.66
21
- opencv-python==4.6.0.66
22
- pandas==1.3.5
23
- pillow==9.3.0
24
- pyqt5==5.15.8
25
- pytorch-lightning==1.9.0
26
- scikit-learn==1.0.2
27
- seaborn==0.12.2
28
- torch==1.13.1
29
- torchvision==0.14.1
30
- tqdm==4.64.1
31
  ```
32
 
33
  ## How to use
 
13
 
14
  ## Packages
15
  ```requirements.txt
16
+ gradio==4.10.0
17
+ matplotlib==3.8.2
18
+ mediapipe==0.10.9
19
+ numpy==1.26.2
20
+ opencv-contrib-python==4.8.1.78
21
+ opencv-python==4.8.1.78
22
+ pandas==2.1.4
23
+ pytorch-lightning==2.1.2
24
+ scikit-learn==1.3.2
25
+ seaborn==0.13.0
26
+ torch==2.1.2
27
+ torchvision==0.16.2
28
+ tqdm==4.66.1
 
 
29
  ```
30
 
31
  ## How to use
app.py CHANGED
@@ -82,8 +82,7 @@ with demo:
82
  with gr.TabItem("Detect closed eyes"):
83
  with gr.Row():
84
  with gr.Column():
85
- # eye_cam_input = gr.Image(sources="webcam", streaming=True)
86
- eye_cam_input = gr.Webcam(streaming=True)
87
  eyes_button = gr.Button("Detect")
88
  with gr.Column():
89
  detection_output = gr.Image(label="Detection result (sorry for the creepiness)", )
@@ -91,7 +90,7 @@ with demo:
91
  with gr.TabItem("Estimate blur"):
92
  with gr.Row():
93
  with gr.Column():
94
- blur_cam_input = gr.Webcam(streaming=True) #gr.Image(sources="webcam", streaming=True)
95
  blur_button = gr.Button("Estimate blur")
96
  with gr.Column():
97
  laplacian_output = gr.Image(label="Laplacian filter view")
 
82
  with gr.TabItem("Detect closed eyes"):
83
  with gr.Row():
84
  with gr.Column():
85
+ eye_cam_input = gr.Image(sources="webcam", streaming=True)
 
86
  eyes_button = gr.Button("Detect")
87
  with gr.Column():
88
  detection_output = gr.Image(label="Detection result (sorry for the creepiness)", )
 
90
  with gr.TabItem("Estimate blur"):
91
  with gr.Row():
92
  with gr.Column():
93
+ blur_cam_input = gr.Image(sources="webcam", streaming=True)
94
  blur_button = gr.Button("Estimate blur")
95
  with gr.Column():
96
  laplacian_output = gr.Image(label="Laplacian filter view")
requirements.txt CHANGED
@@ -1,15 +1,13 @@
1
- gradio==4.9.1
2
- matplotlib==3.5.2
3
- mediapipe==0.10
4
- numpy==1.21.5
5
- opencv-contrib-python==4.6.0.66
6
- opencv-python==4.6.0.66
7
- pandas==1.3.5
8
- pillow==9.3.0
9
- pyqt5==5.15.10
10
- pytorch-lightning==1.9.0
11
- scikit-learn==1.0.2
12
- seaborn==0.12.2
13
- torch==1.13.1
14
- torchvision==0.14.1
15
- tqdm==4.64.1
 
1
+ gradio==4.10.0
2
+ matplotlib==3.8.2
3
+ mediapipe==0.10.9
4
+ numpy==1.26.2
5
+ opencv-contrib-python==4.8.1.78
6
+ opencv-python==4.8.1.78
7
+ pandas==2.1.4
8
+ pytorch-lightning==2.1.2
9
+ scikit-learn==1.3.2
10
+ seaborn==0.13.0
11
+ torch==2.1.2
12
+ torchvision==0.16.2
13
+ tqdm==4.66.1