mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
c4eeac0ca4
When any exceptions occurs in the "try" block of the code, it would handle it the same way regardless. In the `version_check`, there are 4 possibilities for an error to occur. These are as follows: 1) Gradio package is installed improperly due to which the version information is inaccessible. 2) JSON cannot be parsed from the Package version URL. 3) JSON that is parsed from the URL does not contain version information. 4) The Package URL is not accessible. Refactored method to handle these cases and provide appropriate messages. Co-authored-by: Pradyumna Rahul <pradyumnar@Pradyumnas-MacBook-Pro.local> |
||
---|---|---|
.. | ||
golden | ||
images | ||
tmp | ||
__init__.py | ||
test_demos.py | ||
test_inputs.py | ||
test_interfaces.py | ||
test_interpretation.py | ||
test_mix.py | ||
test_outputs.py | ||
test_utils.py |