Seth0330 commited on
Commit
e32a04d
·
verified ·
1 Parent(s): c1c51bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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.")