We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7640804 commit e5eefa7Copy full SHA for e5eefa7
llm/flask_server.py
@@ -155,7 +155,9 @@ def streaming(data):
155
156
return app.response_class(stream_with_context(streaming(data)))
157
158
- app.run(host="0.0.0.0", port=self.port)
+ # set single thread to do prediction
159
+ # refer to: https://github.com/pallets/flask/blob/main/src/flask/app.py#L605
160
+ app.run(host="0.0.0.0", port=self.port, threaded=False)
161
162
def start_ui_service(self, args):
163
# do not support start ui service in one command
0 commit comments