Paul Ke commited on
Commit
024efa5
·
verified ·
1 Parent(s): 415e0bf

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +2 -2
streamlit_app.py CHANGED
@@ -180,13 +180,13 @@ if st.session_state["videos"]:
180
  analysis_prompt = st.sidebar.text_area("Enter analysis")
181
 
182
  if st.button('Generate the story'):
183
- if not video_file:
184
  st.sidebar.warning('PLEASE ENTER A VALID URL')
185
  else:
186
  # Download the video
187
  with st.spinner("Retrieving video..."):
188
  temp_video_path = os.path.join(tempfile.gettempdir(), 'video.mp4')
189
- success, message = download_video(video_file, temp_video_path)
190
 
191
  if not success:
192
  st.sidebar.error(f"Error downloading video: {message}")
 
180
  analysis_prompt = st.sidebar.text_area("Enter analysis")
181
 
182
  if st.button('Generate the story'):
183
+ if not url:
184
  st.sidebar.warning('PLEASE ENTER A VALID URL')
185
  else:
186
  # Download the video
187
  with st.spinner("Retrieving video..."):
188
  temp_video_path = os.path.join(tempfile.gettempdir(), 'video.mp4')
189
+ success, message = download_video(url, temp_video_path)
190
 
191
  if not success:
192
  st.sidebar.error(f"Error downloading video: {message}")