sandz7 commited on
Commit
39eda37
Β·
1 Parent(s): 86917e5

placed in the delta.content in text and appended that to outputs

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -110,7 +110,8 @@ def llama_generation(input_text: str,
110
  outputs = []
111
  for chunk in stream:
112
  if chunk.choices[0].delta.content is not None:
113
- outputs.append(chunk.choices[0].delta.content, end="")
 
114
  yield "".join(outputs)
115
 
116
 
 
110
  outputs = []
111
  for chunk in stream:
112
  if chunk.choices[0].delta.content is not None:
113
+ text = chunk.choices[0].delta.content
114
+ outputs.append(text)
115
  yield "".join(outputs)
116
 
117