Update app.py
Browse files
app.py
CHANGED
@@ -142,13 +142,6 @@ async def c_cmp(payload: Payload):
|
|
142 |
payload.frequency_penalty, # float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component
|
143 |
)
|
144 |
for i, item in enumerate(result):
|
145 |
-
|
146 |
-
yield "data: " + json.dumps(
|
147 |
-
make_chunk_obj(i, delta, None)
|
148 |
-
) + "\n\n"
|
149 |
-
text += delta
|
150 |
-
|
151 |
-
yield "data: " + json.dumps(make_chunk_obj(i, "", "stop")) + "\n\n"
|
152 |
-
yield "data: [END]" + "\n\n"
|
153 |
|
154 |
return StreamingResponse(streamer())
|
|
|
142 |
payload.frequency_penalty, # float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component
|
143 |
)
|
144 |
for i, item in enumerate(result):
|
145 |
+
yield item
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
return StreamingResponse(streamer())
|