Spaces:
Runtime error
Runtime error
Commit
·
37c0f23
1
Parent(s):
467f3aa
temp to str
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def stream(input_text) -> Generator:
|
|
144 |
next_token = q.get(True, timeout=60)
|
145 |
print("next_token: ", next_token)
|
146 |
if next_token == None:
|
147 |
-
|
148 |
# counter = counter + 1
|
149 |
# print("No data, retry number: ", counter)
|
150 |
if counter > 3:
|
@@ -1687,7 +1687,7 @@ def chathmi5(message, history2):
|
|
1687 |
# response = agent.run(message)
|
1688 |
# test callback
|
1689 |
|
1690 |
-
temp =
|
1691 |
for next_token, content in stream(message):
|
1692 |
temp = temp + content
|
1693 |
history_int = history2 + [(None, temp)]
|
|
|
144 |
next_token = q.get(True, timeout=60)
|
145 |
print("next_token: ", next_token)
|
146 |
if next_token == None:
|
147 |
+
pass
|
148 |
# counter = counter + 1
|
149 |
# print("No data, retry number: ", counter)
|
150 |
if counter > 3:
|
|
|
1687 |
# response = agent.run(message)
|
1688 |
# test callback
|
1689 |
|
1690 |
+
temp = ""
|
1691 |
for next_token, content in stream(message):
|
1692 |
temp = temp + content
|
1693 |
history_int = history2 + [(None, temp)]
|