rvc_api / webui.py
aryo100's picture
first commit
b5a064f
raw
history blame contribute delete
609 Bytes
import os
from modules import cmd_opts, ui
# ใชใ‚“ใ‹็Ÿฅใ‚‰ใ‚“ใŒๆนงใ„ใฆๅ‡บใฆใใ‚‹ ".DS_Store"ใ€€ใ‚’็„ก่ฆ–ใ™ใ‚‹ใ€‚
# ใ“ใ“ใซใ“ใ‚“ใชใ‚ณใƒผใƒ‰ใ‚’็ฝฎใในใใ‹ใฏใ‚ใ‹ใ‚‰ใชใ„ใ‘ใฉโ€ฆ
_list_dir = os.listdir
def listdir4mac(path):
return [file for file in _list_dir(path) if not file.startswith(".")]
os.listdir = listdir4mac
def webui():
app = ui.create_ui()
app.queue(64)
app, local_url, share_url = app.launch(
server_name=cmd_opts.opts.host,
server_port=cmd_opts.opts.port,
share=cmd_opts.opts.share,
)
if __name__ == "__main__":
webui()