JirasakJo commited on
Commit
c5ec57c
·
verified ·
1 Parent(s): 6a6cbe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -226,14 +226,6 @@ def submit():
226
  st.warning("⚠️ กรุณาระบุคำถาม")
227
  return
228
 
229
- if st.session_state.pipeline is None:
230
- st.error("❌ ไม่สามารถเชื่อมต่อกับระบบได้ กรุณาลองใหม่อีกครั้ง")
231
- return
232
-
233
- # Prevent duplicate submissions
234
- if "processing_query" in st.session_state and st.session_state.processing_query:
235
- return
236
-
237
  st.session_state.processing_query = True
238
 
239
  user_query = st.session_state.query_input
@@ -275,7 +267,7 @@ def submit():
275
  finally:
276
  st.session_state.processing_query = False # Reset flag
277
 
278
- st.rerun() # Refresh UI
279
 
280
  def main():
281
  # Page config
 
226
  st.warning("⚠️ กรุณาระบุคำถาม")
227
  return
228
 
 
 
 
 
 
 
 
 
229
  st.session_state.processing_query = True
230
 
231
  user_query = st.session_state.query_input
 
267
  finally:
268
  st.session_state.processing_query = False # Reset flag
269
 
270
+ # st.rerun() # Refresh UI
271
 
272
  def main():
273
  # Page config