Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs committed Aug 29, 2024
1 parent 9f4c3ee commit 9e2ae43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions gradio/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
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:
Expand Down
5 changes: 2 additions & 3 deletions gradio/tunneling.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ def _start_tunnel(self, binary: str) -> str:
"--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
Expand Down

0 comments on commit 9e2ae43

Please sign in to comment.