-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathpreload.py
49 lines (40 loc) · 1.3 KB
/
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
40
41
42
43
44
45
46
47
48
49
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(
"--jprq",
type=str,
help="use jprq, alternative to gradio --share, requires a token. https://jprq.io/auth",
)
parser.add_argument(
"--bore",
action="store_true",
help="use bore, alternative to gradio --share",
)
parser.add_argument(
"--bore_url",
type=str,
help="custom bore url. url without 'http://' and (optional) port. example: myboreserver.com or myboreserver.com:12345",
)
parser.add_argument(
"--googleusercontent",
action="store_true",
help="use googleusercontent, only available in the google colab. must be used with --no-gradio-queue",
)
parser.add_argument(
"--tunnel-webhook", type=str, help="discord webhook to send tunnel url to"
)