Description
(pd) jyt@dsvl2:~/PaddleMIX$ CUDA_VISIBLE_DEVICES=0 GRADIO_SHARE=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_ANALYTICS_ENABLED=0 GRADIO_SERVER_PORT=8260 python paddlemix/MULLM_WebUI/run_web.py
/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/_distutils_hack/init.py:30: UserWarning: Setuptools is replacing distutils. Support for replacing an already imported distutils is deprecated. In the future, this condition will fail. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
[2025-05-07 10:56:04,411] [ WARNING] - Detected that datasets module was imported before paddlenlp. This may cause PaddleNLP datasets to be unavalible in intranet. Please import paddlenlp before datasets module to avoid download issues
W0507 10:56:07.078660 51092 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.8, Runtime API Version: 11.8
W0507 10:56:07.079799 51092 gpu_resources.cc:164] device: 0, cuDNN Version: 8.9.
W0507 10:56:11.604589 51092 ir_context.cc:305] custom_op.fast_ln op already registered.
W0507 10:56:11.604635 51092 ir_context.cc:305] custom_op.fast_ln_grad op already registered.
W0507 10:56:11.604640 51092 custom_operator.cc:969] Operator (fast_ln) has been registered.
[2025-05-07 10:56:12,203] [ WARNING] moe_lm.py:454 - grouped_gemm
is not installed, using sequential GEMM, which is slower.
modeling_internlm2 has_flash_attn is True.
modeling_intern_vit has_flash_attn is True.
/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/components/dropdown.py:188: UserWarning: The value passed into gr.Dropdown() is not in the list of choices. Please update the list of choices to include: or set allow_custom_value=True.
warnings.warn(
Running on local URL: http://0.0.0.0:8260
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 967, in run
result = context.run(func, *args)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/blocks.py", line 2785, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/home/jyt/anaconda3/envs/pd/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
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 967, in run
result = context.run(func, *args)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/blocks.py", line 2785, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/home/jyt/anaconda3/envs/pd/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
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 967, in run
result = context.run(func, *args)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/blocks.py", line 2785, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/home/jyt/anaconda3/envs/pd/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
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 967, in run
result = context.run(func, *args)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/blocks.py", line 2785, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/home/jyt/anaconda3/envs/pd/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
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 967, in run
result = context.run(func, *args)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio/blocks.py", line 2785, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/home/jyt/anaconda3/envs/pd/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 "/home/jyt/anaconda3/envs/pd/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/home/jyt/anaconda3/envs/pd/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
2025/05/07 10:56:17 [W] [service.go:132] login to server failed: EOF
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.