Spaces:
Sleeping
Sleeping
File size: 609 Bytes
b5a064f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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()
|