Mr-Vicky-01 commited on
Commit
63c3a41
1 Parent(s): 53a56c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ with st.sidebar:
133
 
134
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
135
 
136
- if user_prompt and uploaded_file:
137
  st.session_state.messages.append({'role': 'user', "content": user_prompt})
138
  with st.chat_message("user", avatar="man-kddi.png"):
139
  st.write(user_prompt)
 
133
 
134
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
135
 
136
+ if user_prompt and (uploaded_file or video_url):
137
  st.session_state.messages.append({'role': 'user', "content": user_prompt})
138
  with st.chat_message("user", avatar="man-kddi.png"):
139
  st.write(user_prompt)