Adityadn commited on
Commit
de6c4c9
·
verified ·
1 Parent(s): 5c04f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -114,9 +114,10 @@ def main():
114
  # If 'Video to Image' conversion, ask for time in seconds
115
  if conversion_type == 'Video to Image':
116
  time_in_seconds = st.slider(
117
- "Time (in seconds) for image extraction",
118
  min_value=0,
119
- max_value=video_duration,
 
120
  step=1
121
  )
122
  else:
 
114
  # If 'Video to Image' conversion, ask for time in seconds
115
  if conversion_type == 'Video to Image':
116
  time_in_seconds = st.slider(
117
+ label="Time (in seconds) for image extraction",
118
  min_value=0,
119
+ max_value=int(video_duration),
120
+ value=0,
121
  step=1
122
  )
123
  else: