Update app.py
Browse files
app.py
CHANGED
|
@@ -313,7 +313,8 @@ if page == "Home":
|
|
| 313 |
|
| 314 |
|
| 315 |
elif page == "Analyze Video":
|
| 316 |
-
uploaded_file = st.file_uploader("Upload a Video", type=["mp4", "mov"])
|
|
|
|
| 317 |
|
| 318 |
if uploaded_file is not None:
|
| 319 |
# Save uploaded file to a temporary location
|
|
@@ -323,7 +324,7 @@ elif page == "Analyze Video":
|
|
| 323 |
|
| 324 |
st.video(temp_video_path)
|
| 325 |
|
| 326 |
-
if st.button("Analyze Video"):
|
| 327 |
with st.spinner("Analyzing..."):
|
| 328 |
try:
|
| 329 |
score = analyze_video(temp_video_path) # ✅ Ensure function exists
|
|
|
|
| 313 |
|
| 314 |
|
| 315 |
elif page == "Analyze Video":
|
| 316 |
+
uploaded_file = st.file_uploader("Upload a Video", type=["mp4", "mov"], label_visibility="hidden")
|
| 317 |
+
|
| 318 |
|
| 319 |
if uploaded_file is not None:
|
| 320 |
# Save uploaded file to a temporary location
|
|
|
|
| 324 |
|
| 325 |
st.video(temp_video_path)
|
| 326 |
|
| 327 |
+
if st.button("Analyze Video", key="analyze_video_button"):
|
| 328 |
with st.spinner("Analyzing..."):
|
| 329 |
try:
|
| 330 |
score = analyze_video(temp_video_path) # ✅ Ensure function exists
|