kz209 commited on
Commit
dbe0f74
·
1 Parent(s): 309f86b
Files changed (1) hide show
  1. utils/multiple_stream.py +1 -1
utils/multiple_stream.py CHANGED
@@ -29,7 +29,7 @@ def stream_data(content_list, model):
29
  #for i, content in enumerate(content_list):
30
  try:
31
  words = next(model.gen(content_list, streaming=True)) # Wrap content in a list to match expected input type
32
- outputs = [outputs[i].append(f" {words[i]}") for i in range(len(content_list))]
33
  updated = True
34
  except StopIteration:
35
  pass
 
29
  #for i, content in enumerate(content_list):
30
  try:
31
  words = next(model.gen(content_list, streaming=True)) # Wrap content in a list to match expected input type
32
+ outputs = [outputs[i]+f" {words[i]}" for i in range(len(content_list))]
33
  updated = True
34
  except StopIteration:
35
  pass