Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -624,7 +624,7 @@ def haspit_search_streamlit():
|
|
| 624 |
if filtered_result in ["safe", "unsafe S6", "unsafe S7"]:
|
| 625 |
try:
|
| 626 |
if 'chatbot' not in st.session_state:
|
| 627 |
-
st.session_state.chatbot =
|
| 628 |
response = st.session_state.chatbot.handle_customer_query(user_query)
|
| 629 |
st.write(response)
|
| 630 |
st.session_state.chat_history.append({"role": "assistant", "content": response})
|
|
|
|
| 624 |
if filtered_result in ["safe", "unsafe S6", "unsafe S7"]:
|
| 625 |
try:
|
| 626 |
if 'chatbot' not in st.session_state:
|
| 627 |
+
st.session_state.chatbot = HaspitBot()
|
| 628 |
response = st.session_state.chatbot.handle_customer_query(user_query)
|
| 629 |
st.write(response)
|
| 630 |
st.session_state.chat_history.append({"role": "assistant", "content": response})
|