2023-08-29 19:35:44 -04:00
|
|
|
import time
|
|
|
|
|
2023-04-23 14:52:43 -04:00
|
|
|
import extensions.api.blocking_api as blocking_api
|
|
|
|
import extensions.api.streaming_api as streaming_api
|
2023-03-15 16:52:46 -04:00
|
|
|
from modules import shared
|
|
|
|
|
2023-05-20 17:42:17 -04:00
|
|
|
|
2023-03-19 09:22:24 -04:00
|
|
|
def setup():
|
2023-08-08 21:20:27 -04:00
|
|
|
blocking_api.start_server(shared.args.api_blocking_port, share=shared.args.public_api, tunnel_id=shared.args.public_api_id)
|
2023-08-29 22:54:43 -04:00
|
|
|
if shared.args.public_api:
|
2023-08-29 19:35:44 -04:00
|
|
|
time.sleep(5)
|
|
|
|
|
2023-08-08 21:20:27 -04:00
|
|
|
streaming_api.start_server(shared.args.api_streaming_port, share=shared.args.public_api, tunnel_id=shared.args.public_api_id)
|