Spaces:
Running
Running
stream...
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ theme = gr.themes.Monochrome(
|
|
| 38 |
def generate(instruction):
|
| 39 |
result = ""
|
| 40 |
for x in llm(ins.format(instruction), stream=True):
|
| 41 |
-
result += x
|
| 42 |
yield result
|
| 43 |
|
| 44 |
|
|
|
|
| 38 |
def generate(instruction):
|
| 39 |
result = ""
|
| 40 |
for x in llm(ins.format(instruction), stream=True):
|
| 41 |
+
result += x['choices'][0]['text']
|
| 42 |
yield result
|
| 43 |
|
| 44 |
|