Update app.py
Browse files
app.py
CHANGED
@@ -117,15 +117,16 @@ def sqlquery(input):
|
|
117 |
return output
|
118 |
'''
|
119 |
|
120 |
-
|
121 |
-
conversation_history.append(("User", input))
|
122 |
-
conversation_history.append(("Bot", sql_response))
|
123 |
|
124 |
# Build conversation string
|
125 |
-
|
126 |
-
conversation = "\n".join([f"{sender}: {msg}" for sender, msg in conversation_history])
|
127 |
|
128 |
-
return conversation
|
|
|
129 |
|
130 |
'''
|
131 |
html = "<div class='chatbot'>"
|
|
|
117 |
return output
|
118 |
'''
|
119 |
|
120 |
+
conversation_history.append((input, sql_response))
|
121 |
+
#conversation_history.append(("User", input))
|
122 |
+
#conversation_history.append(("Bot", sql_response))
|
123 |
|
124 |
# Build conversation string
|
125 |
+
conversation = "\n".join([f"User: {user_msg}\nBot: {resp_msg}" for user_msg, resp_msg in conversation_history])
|
126 |
+
#conversation = "\n".join([f"{sender}: {msg}" for sender, msg in conversation_history])
|
127 |
|
128 |
+
#return conversation
|
129 |
+
return conversation_history
|
130 |
|
131 |
'''
|
132 |
html = "<div class='chatbot'>"
|