Spaces:
Running
Running
Commit
•
9ce4589
1
Parent(s):
8efa0fd
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,8 @@ def main():
|
|
115 |
st.session_state.chat_history = None
|
116 |
st.header('Chat with Your own PDFs :books:')
|
117 |
question = st.text_input("Ask anything to your PDF: ")
|
118 |
-
if question:
|
|
|
119 |
handle_user_input(question)
|
120 |
with st.sidebar:
|
121 |
st.subheader("Upload your Documents Here: ")
|
|
|
115 |
st.session_state.chat_history = None
|
116 |
st.header('Chat with Your own PDFs :books:')
|
117 |
question = st.text_input("Ask anything to your PDF: ")
|
118 |
+
#if question:
|
119 |
+
if question !="" and not question.strip().isspace() and not question == "" and not question.strip() == "" and not question.isspace():
|
120 |
handle_user_input(question)
|
121 |
with st.sidebar:
|
122 |
st.subheader("Upload your Documents Here: ")
|