2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-04-24 13:01:18 +08:00

Suppress printing "Running on local URL:" when quiet is set ()

* Update blocks.py

Suppress printing "Running on local URL:" when quiet is set

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Nicolas Oliver 2024-03-29 13:23:14 -07:00 committed by GitHub
parent 6a6db36466
commit c7933ffedb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

@ -0,0 +1,5 @@
---
"gradio": patch
---
feat:Suppress printing "Running on local URL:" when quiet is set

@ -2096,7 +2096,7 @@ Received outputs:
if self.local_url.startswith("https") or self.is_colab
else "http"
)
if not wasm_utils.IS_WASM and not self.is_colab:
if not wasm_utils.IS_WASM and not self.is_colab and not quiet:
print(
strings.en["RUNNING_LOCALLY_SEPARATED"].format(
self.protocol, self.server_name, self.server_port