Anne31415 commited on
Commit
4c48ccc
·
1 Parent(s): 2e38376

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -153,14 +153,12 @@ def main():
153
  loading_message.empty()
154
 
155
  query = ""
156
- else:
157
- st.warning("Please upload a PDF file before asking questions.")
158
 
159
- st.session_state['chat_history'] = [(sender, msg, "old") for sender, msg, _ in st.session_state['chat_history']]
160
-
161
 
162
  my_component()
163
 
164
-
165
  if __name__ == "__main__":
166
  main()
 
153
  loading_message.empty()
154
 
155
  query = ""
156
+ else:
157
+ st.warning("Please enter a query before asking questions.")
158
 
159
+ st.session_state['chat_history'] = [(sender, msg, "old") for sender, msg, _ in st.session_state['chat_history']]
 
160
 
161
  my_component()
162
 
 
163
  if __name__ == "__main__":
164
  main()