add api port options (#1990)
This commit is contained in:
parent
e657dd342d
commit
26cf8c2545
2 changed files with 4 additions and 6 deletions
|
@ -2,10 +2,6 @@ import extensions.api.blocking_api as blocking_api
|
|||
import extensions.api.streaming_api as streaming_api
|
||||
from modules import shared
|
||||
|
||||
BLOCKING_PORT = 5000
|
||||
STREAMING_PORT = 5005
|
||||
|
||||
|
||||
def setup():
|
||||
blocking_api.start_server(BLOCKING_PORT, share=shared.args.public_api)
|
||||
streaming_api.start_server(STREAMING_PORT, share=shared.args.public_api)
|
||||
blocking_api.start_server(shared.args.api_blocking_port, share=shared.args.public_api)
|
||||
streaming_api.start_server(shared.args.api_streaming_port, share=shared.args.public_api)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue