Report

#38
by rcman2 - opened

Not working. Here is the error below.

runtime error
Exit code: 1. Reason: opy(app.get_blocks().get_api_info())
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 3046, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 931, in json_schema_to_python_type
type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 985, in _json_schema_to_python_type
des = [
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 986, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 946, in _json_schema_to_python_type
return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 985, in _json_schema_to_python_type
des = [
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 986, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 993, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 939, in json_schema_to_python_type
type
= get_type(schema)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 898, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
Traceback (most recent call last):
File "/home/user/app/app.py", line 395, in
demo.launch(ssr_mode=False)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2674, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
Container logs:

Sign up or log in to comment