forked from Bing-su/sd-webui-tunnels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreload.py
39 lines (32 loc) · 934 Bytes
/
preload.py
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
28
29
30
31
32
33
34
35
36
37
38
39
import argparse
def preload(parser: argparse.ArgumentParser):
parser.add_argument(
"--cloudflared",
action="store_true",
help="use trycloudflare, alternative to gradio --share",
)
parser.add_argument(
"--localhostrun",
action="store_true",
help="use localhost.run, alternative to gradio --share",
)
parser.add_argument(
"--remotemoe",
action="store_true",
help="use remote.moe, alternative to gradio --share",
)
parser.add_argument(
"--googleusercontent",
action="store_true",
help="use googleusercontent.com, alternative to gradio --share",
)
parser.add_argument(
"--multiple",
action="store_true",
help="use cloudflared and remotemoe",
)
parser.add_argument(
"--webhook",
type=str,
help="use a webhook URL to share the interface",
)