Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def output_inference(tanya, history):
|
|
44 |
stream=True,
|
45 |
)
|
46 |
for out in output:
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
history = ["init", prompt]
|
52 |
|
|
|
44 |
stream=True,
|
45 |
)
|
46 |
for out in output:
|
47 |
+
stream = copy.deepcopy(out)
|
48 |
+
temp += stream["choices"][0]["text"]
|
49 |
+
yield temp
|
50 |
|
51 |
history = ["init", prompt]
|
52 |
|