MogensR commited on
Commit
7aed5c9
·
1 Parent(s): e307aad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -360,6 +360,9 @@ def main():
360
  # File upload
361
  col1, col2 = st.columns(2)
362
 
 
 
 
363
  with col1:
364
  st.markdown("### 📹 Upload Video")
365
  uploaded_video = st.file_uploader(
@@ -437,7 +440,7 @@ def main():
437
  st.info("Please upload a background image")
438
 
439
  # Process button
440
- if uploaded_video and st.button("🎬 Process Video", type="primary"):
441
 
442
  # Check if background is selected
443
  if background_method == "📋 Preset Backgrounds" and not background_url:
 
360
  # File upload
361
  col1, col2 = st.columns(2)
362
 
363
+ # Initialize video_path variable
364
+ video_path = None
365
+
366
  with col1:
367
  st.markdown("### 📹 Upload Video")
368
  uploaded_video = st.file_uploader(
 
440
  st.info("Please upload a background image")
441
 
442
  # Process button
443
+ if uploaded_video and video_path and st.button("🎬 Process Video", type="primary"):
444
 
445
  # Check if background is selected
446
  if background_method == "📋 Preset Backgrounds" and not background_url: