Spaces:
Paused
Paused
Update patch_gradio.py
Browse files- patch_gradio.py +4 -4
patch_gradio.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio_client.utils as utils
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
def
|
| 6 |
if not isinstance(schema, dict):
|
| 7 |
return "any"
|
| 8 |
-
return
|
| 9 |
|
| 10 |
-
utils.
|
|
|
|
| 1 |
import gradio_client.utils as utils
|
| 2 |
|
| 3 |
+
original_json_schema_to_python_type = utils._json_schema_to_python_type
|
| 4 |
|
| 5 |
+
def patched_json_schema_to_python_type(schema, defs=None):
|
| 6 |
if not isinstance(schema, dict):
|
| 7 |
return "any"
|
| 8 |
+
return original_json_schema_to_python_type(schema, defs)
|
| 9 |
|
| 10 |
+
utils._json_schema_to_python_type = patched_json_schema_to_python_type
|