Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ def generate_response():
|
|
213 |
app.logger.info('Generator created')
|
214 |
|
215 |
# Use Response to stream tokens
|
216 |
-
return Response(generate_and_log_tokens(
|
217 |
|
218 |
|
219 |
|
|
|
213 |
app.logger.info('Generator created')
|
214 |
|
215 |
# Use Response to stream tokens
|
216 |
+
return Response(generate_and_log_tokens(raw_content, model, generator), content_type='text/plain', status=200, direct_passthrough=True)
|
217 |
|
218 |
|
219 |
|