mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-04 09:49:20 +08:00
Update web_demo_streamlit-2_5.py
Fixed a bug where imagefile was not initialized when no image was passed in
This commit is contained in:
@@ -88,6 +88,7 @@ if user_text:
|
||||
# Generate reply using the model
|
||||
model = st.session_state.model
|
||||
tokenizer = st.session_state.tokenizer
|
||||
imagefile = None
|
||||
|
||||
with st.chat_message(A_NAME, avatar="assistant"):
|
||||
# If the previous message contains an image, pass the image to the model
|
||||
|
||||
Reference in New Issue
Block a user