suriya7 commited on
Commit
438b1a5
1 Parent(s): c45ea30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -142,7 +142,7 @@ with st.sidebar:
142
  st.success("Done")
143
 
144
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
145
- if user_prompt and uploaded_file:
146
  st.session_state.messages.append({'role': 'user', "content": user_prompt})
147
  with st.chat_message("user", avatar="man-kddi.png"):
148
  st.write(user_prompt)
 
142
  st.success("Done")
143
 
144
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
145
+ if user_prompt and (video_url or uploaded_file):
146
  st.session_state.messages.append({'role': 'user', "content": user_prompt})
147
  with st.chat_message("user", avatar="man-kddi.png"):
148
  st.write(user_prompt)