mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
12 lines
342 B
Python
12 lines
342 B
Python
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)
|