Update app.py
Browse files
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
|
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 = {
|