Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|