whisper-webui / app-network.py
ipid
Allow configuration of server port
d9165a1
raw history blame
No virus
363 Bytes
import sys
server_port = None
try:
if len(sys.argv) > 1:
server_port = int(sys.argv[1])
except ValueError:
print(f'Usage: python {sys.argv[0]} <server-port>\n')
exit(1)
# Run the app with no audio file restrictions, and make it available on the network
from app import create_ui
create_ui(-1, server_name="0.0.0.0", server_port=server_port)