Update app.py
Browse files
app.py
CHANGED
|
@@ -95,8 +95,8 @@ def build_the_bot2(input_text):
|
|
| 95 |
from langchain_core.messages import AIMessage, HumanMessage
|
| 96 |
|
| 97 |
#preserve chat history and create response
|
| 98 |
-
|
| 99 |
-
|
| 100 |
def chat2(chat_history, user_input,chat_context):
|
| 101 |
#print(chat_history)
|
| 102 |
#print(user_input)
|
|
|
|
| 95 |
from langchain_core.messages import AIMessage, HumanMessage
|
| 96 |
|
| 97 |
#preserve chat history and create response
|
| 98 |
+
global chat_context
|
| 99 |
+
chat_context = []
|
| 100 |
def chat2(chat_history, user_input,chat_context):
|
| 101 |
#print(chat_history)
|
| 102 |
#print(user_input)
|