Paul Ke commited on
Commit
d62fdcb
·
verified ·
1 Parent(s): 51901da

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +3 -3
streamlit_app.py CHANGED
@@ -146,7 +146,7 @@ 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"]:
149
- download = st.button("Load Video")
150
  if download:
151
  download_options = {}
152
  if st.session_state["video-password"]:
@@ -172,10 +172,10 @@ if st.button('Generate the story'):
172
  try:
173
  with st.spinner("Generating the story of the video"):
174
  # Process the video
175
- processed_video = get_file(st.session_state["videos"])
176
 
177
  # AI agent processing
178
- response = multimodal_Agent.run(analysis_prompt, videos=[processed_video], safety_settings=safety_settings)
179
 
180
  st.subheader('Analysis Result')
181
  st.markdown(response.content)
 
146
  st.text_input("Video Password", key="video-password", placeholder="Enter Video Password")
147
 
148
  if st.session_state["url"]:
149
+ download = st.sidebar.button("Load Video")
150
  if download:
151
  download_options = {}
152
  if st.session_state["video-password"]:
 
172
  try:
173
  with st.spinner("Generating the story of the video"):
174
  # Process the video
175
+ processed-video = get_file(st.session_state["videos"])
176
 
177
  # AI agent processing
178
+ response = multimodal_Agent.run(analysis_prompt, videos=[processed-video], safety_settings=safety_settings)
179
 
180
  st.subheader('Analysis Result')
181
  st.markdown(response.content)