Harsh2001 commited on
Commit
bab4d96
·
verified ·
1 Parent(s): b102053

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -1,10 +1,5 @@
1
  import streamlit as st
2
-
3
- # Placeholder for the chatbot's response function
4
- def get_bot_response(user_input):
5
- # Here, you would integrate your chatbot's backend
6
- # For demonstration purposes, we'll use a simple echo response
7
- return f"Bot: You said '{user_input}'"
8
 
9
  # Streamlit app layout
10
  st.title("Chatbot Interface")
@@ -20,7 +15,7 @@ user_input = st.text_input("You:", "")
20
  if st.button("Send"):
21
  if user_input:
22
  # Get bot response
23
- bot_response = get_bot_response(user_input)
24
 
25
  # Append both user input and bot response to conversation
26
  st.session_state.conversation.append(f"You: {user_input}")
 
1
  import streamlit as st
2
+ from utils import get_answer
 
 
 
 
 
3
 
4
  # Streamlit app layout
5
  st.title("Chatbot Interface")
 
15
  if st.button("Send"):
16
  if user_input:
17
  # Get bot response
18
+ bot_response = get_answer(user_input)
19
 
20
  # Append both user input and bot response to conversation
21
  st.session_state.conversation.append(f"You: {user_input}")