Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -153,14 +153,12 @@ def main():
|
|
153 |
loading_message.empty()
|
154 |
|
155 |
query = ""
|
156 |
-
|
157 |
-
|
158 |
|
159 |
-
|
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()
|