This commit is contained in:
Abubakar Abid 2024-08-29 14:43:38 -07:00
parent 9f4c3eec0f
commit 9e2ae43330
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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