Update app.py
Browse files
app.py
CHANGED
|
@@ -287,4 +287,9 @@ def send_message():
|
|
| 287 |
st.error("Exception: " + str(e))
|
| 288 |
st.code(traceback.format_exc())
|
| 289 |
|
| 290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
st.error("Exception: " + str(e))
|
| 288 |
st.code(traceback.format_exc())
|
| 289 |
|
| 290 |
+
if st.session_state.json_data:
|
| 291 |
+
st.text_input("Your message:", key="temp_input", on_change=send_message)
|
| 292 |
+
|
| 293 |
+
st.json(results)
|
| 294 |
+
else:
|
| 295 |
+
st.info("Please upload at least one JSON file to start chatting.")
|