File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gradio " : patch
3
+ ---
4
+
5
+ feat: Changed gradio version check from print statement to warning
Original file line number Diff line number Diff line change @@ -103,11 +103,11 @@ def version_check():
103
103
current_pkg_version = get_package_version ()
104
104
latest_pkg_version = httpx .get (url = PKG_VERSION_URL , timeout = 3 ).json ()["version" ]
105
105
if Version (latest_pkg_version ) > Version (current_pkg_version ):
106
- print (
106
+ warnings . warn (
107
107
f"IMPORTANT: You are using gradio version { current_pkg_version } , "
108
- f"however version { latest_pkg_version } is available, please upgrade."
108
+ f"however version { latest_pkg_version } is available, please upgrade. \n "
109
+ f"--------"
109
110
)
110
- print ("--------" )
111
111
except json .decoder .JSONDecodeError :
112
112
warnings .warn ("unable to parse version details from package URL." )
113
113
except KeyError :
You can’t perform that action at this time.
0 commit comments