placed in the delta.content in text and appended that to outputs
Browse files
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 |
-
|
|
|
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 |
|