Update app.py
Browse files
app.py
CHANGED
@@ -212,9 +212,10 @@ def Chat_Message(history):
|
|
212 |
if len(messages1) >= 8:
|
213 |
messages1 = messages1[-8:]
|
214 |
|
|
|
215 |
history[-1][1] = ""
|
216 |
-
for
|
217 |
-
history[-1][1] +=
|
218 |
time.sleep(0.0025)
|
219 |
yield history
|
220 |
|
@@ -247,9 +248,10 @@ def Web_Search(history):
|
|
247 |
if len(messages2) >= 8:
|
248 |
messages2 = messages2[-8:]
|
249 |
|
|
|
250 |
history[-1][1] = ""
|
251 |
-
for
|
252 |
-
history[-1][1] +=
|
253 |
time.sleep(0.0025)
|
254 |
yield history
|
255 |
|
@@ -291,9 +293,10 @@ def Chart_Generator(history):
|
|
291 |
|
292 |
combined_content=response.content
|
293 |
|
|
|
294 |
history[-1][1] = ""
|
295 |
-
for
|
296 |
-
history[-1][1] +=
|
297 |
time.sleep(0.0025)
|
298 |
yield history
|
299 |
|
@@ -339,9 +342,10 @@ def Link_Scratch(history):
|
|
339 |
|
340 |
response_message = response.content
|
341 |
|
|
|
342 |
history[-1][1] = ""
|
343 |
-
for
|
344 |
-
history[-1][1] +=
|
345 |
time.sleep(0.0025)
|
346 |
yield history
|
347 |
|
@@ -397,9 +401,10 @@ def File_Interact(history,filepath):
|
|
397 |
|
398 |
response_message = response.content
|
399 |
|
|
|
400 |
history[-1][1] = ""
|
401 |
-
for
|
402 |
-
history[-1][1] +=
|
403 |
time.sleep(0.0025)
|
404 |
yield history
|
405 |
|
|
|
212 |
if len(messages1) >= 8:
|
213 |
messages1 = messages1[-8:]
|
214 |
|
215 |
+
words = response.content.split()
|
216 |
history[-1][1] = ""
|
217 |
+
for word in words:
|
218 |
+
history[-1][1] += word + " "
|
219 |
time.sleep(0.0025)
|
220 |
yield history
|
221 |
|
|
|
248 |
if len(messages2) >= 8:
|
249 |
messages2 = messages2[-8:]
|
250 |
|
251 |
+
words = response.content.split()
|
252 |
history[-1][1] = ""
|
253 |
+
for word in words:
|
254 |
+
history[-1][1] += word + " "
|
255 |
time.sleep(0.0025)
|
256 |
yield history
|
257 |
|
|
|
293 |
|
294 |
combined_content=response.content
|
295 |
|
296 |
+
words = combined_content.split()
|
297 |
history[-1][1] = ""
|
298 |
+
for word in words:
|
299 |
+
history[-1][1] += word + " "
|
300 |
time.sleep(0.0025)
|
301 |
yield history
|
302 |
|
|
|
342 |
|
343 |
response_message = response.content
|
344 |
|
345 |
+
words = response_message.split()
|
346 |
history[-1][1] = ""
|
347 |
+
for word in words:
|
348 |
+
history[-1][1] += word + " "
|
349 |
time.sleep(0.0025)
|
350 |
yield history
|
351 |
|
|
|
401 |
|
402 |
response_message = response.content
|
403 |
|
404 |
+
words = response_message.split()
|
405 |
history[-1][1] = ""
|
406 |
+
for word in words:
|
407 |
+
history[-1][1] += word + " "
|
408 |
time.sleep(0.0025)
|
409 |
yield history
|
410 |
|