JirasakJo commited on
Commit
a9f2b97
·
verified ·
1 Parent(s): e8c1215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -349,12 +349,9 @@ def handle_submit(user_query: str):
349
  # Add user message to chat history
350
  st.session_state.chat_history.append(("user", user_query))
351
 
352
- # Process query with semantic weight 0.3 (matching main())
353
  with st.spinner("🔍 กำลังค้นหาคำตอบ..."):
354
- result = st.session_state.pipeline.process_query(
355
- query=user_query,
356
- weight_semantic=0.3 # Match main() configuration
357
- )
358
 
359
  # Create response with same structure as main()
360
  response_dict = {
 
349
  # Add user message to chat history
350
  st.session_state.chat_history.append(("user", user_query))
351
 
352
+ # Process query without the weight_semantic parameter
353
  with st.spinner("🔍 กำลังค้นหาคำตอบ..."):
354
+ result = st.session_state.pipeline.process_query(query=user_query)
 
 
 
355
 
356
  # Create response with same structure as main()
357
  response_dict = {