StevesInfinityDrive commited on
Commit
257f58c
·
verified ·
1 Parent(s): ff3b088

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import uuid
6
  import streamlit as st
7
 
8
  sys.path.append(os.path.abspath("src"))
9
- from src.chatbot import generate_response, COUNTRY_HELPLINES, get_helpline_for_country
10
 
11
  # Set up logging for safeguard triggers
12
  logging.basicConfig(filename="safeguard_logs.txt", level=logging.INFO)
@@ -61,7 +61,7 @@ user_input = st.text_input("Ask me anything:")
61
  if st.button("Send"):
62
  if user_input.strip():
63
  # Generate chatbot response using country selection
64
- response = generate_response(user_input, st.session_state.selected_country)
65
 
66
  # Store conversation
67
  st.session_state.chat_history.append(f"You: {user_input}")
 
6
  import streamlit as st
7
 
8
  sys.path.append(os.path.abspath("src"))
9
+ from src.chatbot import generate_response_with_history, COUNTRY_HELPLINES, get_helpline_for_country
10
 
11
  # Set up logging for safeguard triggers
12
  logging.basicConfig(filename="safeguard_logs.txt", level=logging.INFO)
 
61
  if st.button("Send"):
62
  if user_input.strip():
63
  # Generate chatbot response using country selection
64
+ response = generate_response_with_history(user_input, st.session_state.selected_country)
65
 
66
  # Store conversation
67
  st.session_state.chat_history.append(f"You: {user_input}")