demo doesn't load

#10
by kubston20004 - opened
runtime error
Exit code: 1. Reason: ncio.py", line 986, in run
    result = context.run(func, *args)
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/routes.py", line 416, in main
    gradio_api_info = api_info(False)
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/routes.py", line 445, in api_info
    app.api_info = app.get_blocks().get_api_info()
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/blocks.py", line 2843, in get_api_info
    python_type = client_utils.json_schema_to_python_type(info)
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio_client/utils.py", line 893, in json_schema_to_python_type
    type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
    des = [
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in <listcomp>
    f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/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 "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in _json_schema_to_python_type
    type_ = get_type(schema)
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio_client/utils.py", line 863, in get_type
    if "const" in schema:
TypeError: argument of type 'bool' is not iterable
Traceback (most recent call last):
  File "/app/gradio_app.py", line 371, in <module>
    demo.queue().launch(share=False)
  File "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/blocks.py", line 2456, 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.

Sign up or log in to comment