From 63c80121e2c5691145a2bc8c49cf1a2b277c7067 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Thu, 20 Oct 2022 06:33:07 +0000 Subject: [PATCH] fix uvicorn's bug --- paddlespeech/server/bin/paddlespeech_server.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddlespeech/server/bin/paddlespeech_server.py b/paddlespeech/server/bin/paddlespeech_server.py index 10a91d9b..1b1792bd 100644 --- a/paddlespeech/server/bin/paddlespeech_server.py +++ b/paddlespeech/server/bin/paddlespeech_server.py @@ -113,7 +113,7 @@ class ServerExecutor(BaseExecutor): """ config = get_config(config_file) if self.init(config): - uvicorn.run(app, host=config.host, port=config.port, debug=True) + uvicorn.run(app, host=config.host, port=config.port) @cli_server_register( diff --git a/setup.py b/setup.py index 3353cdad..e551d9fa 100644 --- a/setup.py +++ b/setup.py @@ -77,7 +77,7 @@ base = [ "pybind11", ] -server = ["fastapi", "uvicorn<=0.18.3", "pattern_singleton", "websockets"] +server = ["fastapi", "uvicorn", "pattern_singleton", "websockets"] requirements = { "install":