File “/usr/local/lib/python3.11/site-packages/starlette/routing.py”, line 734, in app
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 908, in _json_schema_to_python_type
^^^^^^^^^^^^
await route.handle(scope, receive, send)
File “/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py”, line 967, in run
File “/usr/local/lib/python3.11/site-packages/starlette/routing.py”, line 288, in handle
result = context.run(func, *args)
await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/gradio/routes.py”, line 431, in main
return _json_schema_to_python_type(defs[schema[“$ref”].split(”/”)[-1]], defs)
File “/usr/local/lib/python3.11/site-packages/starlette/routing.py”, line 76, in app
gradio_api_info = api_info(False)
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/gradio/routes.py”, line 460, in api_info
File “/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py”, line 53, in wrapped_app
app.api_info = app.get_blocks().get_api_info()
raise exc
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 947, in _json_schema_to_python_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/starlette/exception_handler.py”, line 42, in wrapped_app
File “/usr/local/lib/python3.11/site-packages/gradio/blocks.py”, line 2785, in get_api_info
des = [
python_type = client_utils.json_schema_to_python_type(info)
await app(scope, receive, sender)
^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 893, in json_schema_to_python_type
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 948, in
type = _json_schema_to_python_type(schema, schema.get(“$defs”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f”{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}”
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 929, in _json_schema_to_python_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[_json_schema_to_python_type(i, defs) for i in items[“prefixItems”]]
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 929, in
[_json_schema_to_python_type(i, defs) for i in items[“prefixItems”]]
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 955, in _json_schema_to_python_type
f”str, {_json_schema_to_python_type(schema[‘additionalProperties’], defs)}”
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 901, in json_schema_to_python_type
type = get_type(schema)
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/gradio_client/utils.py”, line 863, in get_type
if “const” in schema:
^^^^^^^^^^^^^^^^^
TypeError: argument of type ‘bool’ is not iterable