Skip to content

Commit 51b53e3

Browse files
committed
Update launch kwargs
1 parent d6a2220 commit 51b53e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,11 @@ def ui(**kwargs):
617617
launch_kwargs['inbrowser'] = inbrowser
618618
if share:
619619
launch_kwargs['share'] = share
620+
launch_kwargs['allowed_paths'] = ["assets", "./assets", "images", "./images", 'e:/TMP']
621+
launch_kwargs['favicon_path'] = "./assets/favicon.ico"
620622

621623

622-
demo.queue(max_size=10, api_open=False).launch(**launch_kwargs, allowed_paths=["assets","./assets","images","./images", 'e:/TMP'], favicon_path="./assets/favicon.ico")
624+
demo.queue(max_size=10, api_open=False).launch(**launch_kwargs)
623625

624626
if __name__ == "__main__":
625627
parser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)