mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-04 17:59:18 +08:00
Update web_demo_streamlit-minicpmv2_6.py
This commit is contained in:
@@ -225,7 +225,8 @@ if user_text is not None:
|
||||
if len(st.session_state.chat_history) > 1 and st.session_state.uploaded_video_num == 1:
|
||||
uploaded_video_path = st.session_state.uploaded_video_list[-1]
|
||||
if uploaded_video_path:
|
||||
frames = encode_video(uploaded_video_path)
|
||||
with st.spinner('Encoding your video, please wait...'):
|
||||
frames = encode_video(uploaded_video_path)
|
||||
else:
|
||||
print("Video Mode: No video found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user