This commit is contained in:
parent
79abd2bbdd
commit
f904c754e2
|
|
@ -121,6 +121,8 @@ def chat(
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
result = result_q.get(timeout=0.1)
|
result = result_q.get(timeout=0.1)
|
||||||
|
if isinstance(result, str):
|
||||||
|
result = {"text": result}
|
||||||
yield result, log_state
|
yield result, log_state
|
||||||
except Empty:
|
except Empty:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue