Update app.py
Browse files
app.py
CHANGED
|
@@ -212,6 +212,8 @@ def Chat_Message(history):
|
|
| 212 |
if len(messages1) >= 8:
|
| 213 |
messages1 = messages1[-8:]
|
| 214 |
|
|
|
|
|
|
|
| 215 |
history[-1][1] += response.content
|
| 216 |
|
| 217 |
return history
|
|
@@ -245,6 +247,8 @@ def Web_Search(history):
|
|
| 245 |
if len(messages2) >= 8:
|
| 246 |
messages2 = messages2[-8:]
|
| 247 |
|
|
|
|
|
|
|
| 248 |
history[-1][1] += response.content
|
| 249 |
|
| 250 |
return history
|
|
@@ -287,6 +291,8 @@ def Chart_Generator(history):
|
|
| 287 |
|
| 288 |
combined_content=response.content
|
| 289 |
|
|
|
|
|
|
|
| 290 |
history[-1][1] += combined_content
|
| 291 |
|
| 292 |
return history
|
|
@@ -333,6 +339,8 @@ def Link_Scratch(history):
|
|
| 333 |
|
| 334 |
response_message = response.content
|
| 335 |
|
|
|
|
|
|
|
| 336 |
history[-1][1] += response_message
|
| 337 |
|
| 338 |
return history
|
|
@@ -389,6 +397,8 @@ def File_Interact(history,filepath):
|
|
| 389 |
|
| 390 |
response_message = response.content
|
| 391 |
|
|
|
|
|
|
|
| 392 |
history[-1][1] += response_message
|
| 393 |
|
| 394 |
return history
|
|
|
|
| 212 |
if len(messages1) >= 8:
|
| 213 |
messages1 = messages1[-8:]
|
| 214 |
|
| 215 |
+
history[-1][1] = ""
|
| 216 |
+
|
| 217 |
history[-1][1] += response.content
|
| 218 |
|
| 219 |
return history
|
|
|
|
| 247 |
if len(messages2) >= 8:
|
| 248 |
messages2 = messages2[-8:]
|
| 249 |
|
| 250 |
+
history[-1][1] = ""
|
| 251 |
+
|
| 252 |
history[-1][1] += response.content
|
| 253 |
|
| 254 |
return history
|
|
|
|
| 291 |
|
| 292 |
combined_content=response.content
|
| 293 |
|
| 294 |
+
history[-1][1] = ""
|
| 295 |
+
|
| 296 |
history[-1][1] += combined_content
|
| 297 |
|
| 298 |
return history
|
|
|
|
| 339 |
|
| 340 |
response_message = response.content
|
| 341 |
|
| 342 |
+
history[-1][1] = ""
|
| 343 |
+
|
| 344 |
history[-1][1] += response_message
|
| 345 |
|
| 346 |
return history
|
|
|
|
| 397 |
|
| 398 |
response_message = response.content
|
| 399 |
|
| 400 |
+
history[-1][1] = ""
|
| 401 |
+
|
| 402 |
history[-1][1] += response_message
|
| 403 |
|
| 404 |
return history
|