Paul Ke commited on
Commit
e16b690
·
verified ·
1 Parent(s): 8042776

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +2 -2
streamlit_app.py CHANGED
@@ -142,7 +142,7 @@ st.sidebar.text_input(
142
  on_change=_remove_video,
143
  )
144
 
145
- with st.expander("Options", expanded=False):
146
  st.text_input("Video Password", key="video-password", placeholder="Enter Video Password")
147
 
148
  if st.session_state["url"]:
@@ -177,7 +177,7 @@ if st.session_state["videos"]:
177
  st.error("Failed downloading the video", icon="😔")
178
 
179
  # URL input for video
180
- video_url=f"{st.session_state['videos'].lower().translate(str.maketrans('', '', string.punctuation)).replace(' ', '_')}.mp4",
181
 
182
  # Analysis prompt
183
  analysis_prompt = st.sidebar.text_area("Enter analysis")
 
142
  on_change=_remove_video,
143
  )
144
 
145
+ with st.sidebar.expander("Options", expanded=False):
146
  st.text_input("Video Password", key="video-password", placeholder="Enter Video Password")
147
 
148
  if st.session_state["url"]:
 
177
  st.error("Failed downloading the video", icon="😔")
178
 
179
  # URL input for video
180
+ video_url = video_path
181
 
182
  # Analysis prompt
183
  analysis_prompt = st.sidebar.text_area("Enter analysis")