JirasakJo commited on
Commit
c1e4b28
·
verified ·
1 Parent(s): f677f62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,9 +225,9 @@ if 'context_memory' not in st.session_state:
225
  st.session_state.context_memory = []
226
 
227
  def submit():
228
- # if not st.session_state.query_input:
229
- # st.warning("⚠️ กรุณาระบุคำถาม")
230
- # return
231
 
232
  user_query = st.session_state.query_input.strip() # Strip unnecessary spaces
233
  st.session_state.query_input = "" # Clear input
 
225
  st.session_state.context_memory = []
226
 
227
  def submit():
228
+ if not st.session_state.query_input:
229
+ st.warning("⚠️ กรุณาระบุคำถาม")
230
+ return
231
 
232
  user_query = st.session_state.query_input.strip() # Strip unnecessary spaces
233
  st.session_state.query_input = "" # Clear input