Spaces:
Runtime error
Runtime error
Commit
•
aa7c965
1
Parent(s):
1cbad06
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def extract_heads(filepath, frame0):
|
|
124 |
return nbperson, listhead
|
125 |
|
126 |
#*********************************************************************************************
|
127 |
-
def (
|
128 |
k = 0
|
129 |
for i in range(1, 10):
|
130 |
cols = st.columns(5)
|
@@ -175,7 +175,7 @@ def main():
|
|
175 |
#st.write('filepath : ',filepath)
|
176 |
st.success("Click again to retry or try a different video by uploading")
|
177 |
nbperson, listhead = extract_heads(filepath, frame0)
|
178 |
-
|
179 |
|
180 |
return
|
181 |
|
|
|
124 |
return nbperson, listhead
|
125 |
|
126 |
#*********************************************************************************************
|
127 |
+
def display_heads_(nbperson, listhead):
|
128 |
k = 0
|
129 |
for i in range(1, 10):
|
130 |
cols = st.columns(5)
|
|
|
175 |
#st.write('filepath : ',filepath)
|
176 |
st.success("Click again to retry or try a different video by uploading")
|
177 |
nbperson, listhead = extract_heads(filepath, frame0)
|
178 |
+
display_heads_(nbperson, listhead)
|
179 |
|
180 |
return
|
181 |
|