mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
comment out pkg version check
This commit is contained in:
parent
a0238bfc46
commit
dc3c70daee
@ -18,7 +18,7 @@ import time
|
|||||||
|
|
||||||
LOCALHOST_IP = "127.0.0.1"
|
LOCALHOST_IP = "127.0.0.1"
|
||||||
TRY_NUM_PORTS = 100
|
TRY_NUM_PORTS = 100
|
||||||
PKG_VERSION_URL = "https://gradio.app/api/pkg-version"
|
# PKG_VERSION_URL = "https://gradio.app/api/pkg-version"
|
||||||
|
|
||||||
|
|
||||||
class Interface:
|
class Interface:
|
||||||
@ -249,12 +249,12 @@ class Interface:
|
|||||||
except NameError:
|
except NameError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
current_pkg_version = pkg_resources.require("gradio")[0].version
|
# current_pkg_version = pkg_resources.require("gradio")[0].version
|
||||||
latest_pkg_version = requests.get(url=PKG_VERSION_URL).json()["version"]
|
# latest_pkg_version = requests.get(url=PKG_VERSION_URL).json()["version"]
|
||||||
if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version):
|
# if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version):
|
||||||
print(f"IMPORTANT: You are using gradio version {current_pkg_version}, however version {latest_pkg_version} "
|
# print(f"IMPORTANT: You are using gradio version {current_pkg_version}, however version {latest_pkg_version} "
|
||||||
f"is available, please upgrade.")
|
# f"is available, please upgrade.")
|
||||||
print('--------')
|
# print('--------')
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
print(strings.en["BETA_MESSAGE"])
|
print(strings.en["BETA_MESSAGE"])
|
||||||
if not is_colab:
|
if not is_colab:
|
||||||
|
Loading…
Reference in New Issue
Block a user