Update app.py
Browse files
app.py
CHANGED
|
@@ -117,10 +117,14 @@ def sqlquery(input):
|
|
| 117 |
return output
|
| 118 |
'''
|
| 119 |
|
| 120 |
-
conversation_history.append((input, sql_response))
|
|
|
|
|
|
|
| 121 |
|
| 122 |
# Build conversation string
|
| 123 |
-
conversation = "\n".join([f"User: {user_msg}\nBot: {resp_msg}" for user_msg, resp_msg in conversation_history])
|
|
|
|
|
|
|
| 124 |
return conversation
|
| 125 |
|
| 126 |
'''
|
|
|
|
| 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 |
|
| 130 |
'''
|