userIdc2024 commited on
Commit
b6ed37d
·
verified ·
1 Parent(s): 3f8378c

Update app_pages/video_hashid_generation.py

Browse files
app_pages/video_hashid_generation.py CHANGED
@@ -19,6 +19,8 @@ def render_video_hashid(uid: str):
19
 
20
  uploaded_file = st.file_uploader("Upload a ZIP file ", type=["zip"])
21
 
 
 
22
  generate_clicked = st.button(
23
  "Generate Augmented Videos",
24
  type="primary",
@@ -64,12 +66,14 @@ def render_video_hashid(uid: str):
64
  continue
65
 
66
  try:
67
- r = process_video_with_hash_info(
68
- input_path=input_path,
69
- output_path=output_dir
70
- )
71
- if r:
72
- results.append(r)
 
 
73
  except Exception as e:
74
  skipped.append(f"{input_path} ({e})")
75
 
 
19
 
20
  uploaded_file = st.file_uploader("Upload a ZIP file ", type=["zip"])
21
 
22
+ num_variations = st.slider("Number of variations per video", min_value=1, max_value=10, value=1, step=1)
23
+
24
  generate_clicked = st.button(
25
  "Generate Augmented Videos",
26
  type="primary",
 
66
  continue
67
 
68
  try:
69
+ for i in range(num_variations):
70
+ r = process_video_with_hash_info(
71
+ input_path=input_path,
72
+ output_path=output_dir,
73
+ variation_idx=i+1
74
+ )
75
+ if r:
76
+ results.append(r)
77
  except Exception as e:
78
  skipped.append(f"{input_path} ({e})")
79