mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
changes
This commit is contained in:
parent
9f4c3eec0f
commit
9e2ae43330
@ -19,6 +19,7 @@ from gradio.tunneling import CERTIFICATE_PATH, Tunnel
|
||||
GRADIO_API_SERVER = "https://api.gradio.app/v3/tunnel-request"
|
||||
GRADIO_SHARE_SERVER_ADDRESS = os.getenv("GRADIO_SHARE_SERVER_ADDRESS")
|
||||
|
||||
|
||||
def setup_tunnel(
|
||||
local_host: str, local_port: int, share_token: str, share_server_address: str | None
|
||||
) -> str:
|
||||
|
@ -115,9 +115,8 @@ class Tunnel:
|
||||
"--server_addr",
|
||||
f"{self.remote_host}:{self.remote_port}",
|
||||
"--disable_log_color",
|
||||
"--tls_enable"
|
||||
"--tls_trusted_ca_file",
|
||||
CERTIFICATE_PATH
|
||||
"--tls_enable" "--tls_trusted_ca_file",
|
||||
CERTIFICATE_PATH,
|
||||
]
|
||||
self.proc = subprocess.Popen(
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
||||
|
Loading…
Reference in New Issue
Block a user