Theo Alves Da Costa commited on
Commit
16dd9ce
1 Parent(s): f034348

Corrected pip installs

Browse files
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +4 -1
  3. requirements.txt +0 -1
README.md CHANGED
@@ -10,3 +10,4 @@ pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+ See https://huggingface.co/docs/hub/spaces-github-actions#managing-spaces-with-github-actions
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
  import os
3
 
@@ -20,7 +23,7 @@ def analyze_genders(img):
20
 
21
  new_metrics = {"Space occupied by women":metrics["women_area"],"Space occupied by men":metrics["men_area"]}
22
 
23
- return img_with_faces,new_metrics
24
 
25
 
26
  demo = gr.Interface(
1
+ os.system("pip install --upgrade pip")
2
+ os.system("pip install umap-learn bechdelai==0.0.1a2")
3
+
4
  import gradio as gr
5
  import os
6
 
23
 
24
  new_metrics = {"Space occupied by women":metrics["women_area"],"Space occupied by men":metrics["men_area"]}
25
 
26
+ return new_metrics, img_with_faces
27
 
28
 
29
  demo = gr.Interface(
requirements.txt CHANGED
@@ -1 +0,0 @@
1
- bechdelai==0.0.1a2