(sd) root@xmg01:/home/xmg/cxw/TripoSR-main# python gradio_app.py --listen --port 7860
/home/xmg/cxw/TripoSR-main/gradio_app.py:94: GradioUnusedKwargWarning: You have unused kwarg parameters in Image, please remove them: {'sources': 'upload'}
input_image = gr.Image(
Running on local URL: http://0.0.0.0:7860
To create a public link, set share=True in launch().
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in call
await self.app(scope, receive, send)
File "/root/anaconda3/envs/sd/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 "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 782, in app
await route.handle(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app
raise e
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app
raw_response = await run_endpoint_function(
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
return await run_in_threadpool(dependant.call, *values)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/concurrency.py", line 40, in run_in_threadpool
return await anyio.to_thread.run_sync(func, args)
File "/root/anaconda3/envs/sd/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 "/root/anaconda3/envs/sd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/gradio/routes.py", line 291, in api_info
return gradio.blocks.get_api_info(config, serialize) # type: ignore
File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/gradio/blocks.py", line 528, in get_api_info
serializer = serializing.COMPONENT_MAPPING[type]()
KeyError: 'dataset'
这个错误是什么原因
(sd) root@xmg01:/home/xmg/cxw/TripoSR-main# python gradio_app.py --listen --port 7860 /home/xmg/cxw/TripoSR-main/gradio_app.py:94: GradioUnusedKwargWarning: You have unused kwarg parameters in Image, please remove them: {'sources': 'upload'} input_image = gr.Image( Running on local URL: http://0.0.0.0:7860
To create a public link, set
share=True
inlaunch()
. ERROR: Exception in ASGI application Traceback (most recent call last): File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi result = await app( # type: ignore[func-returns-value] File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call return await self.app(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call await super().call(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/applications.py", line 123, in call await self.middleware_stack(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in call raise exc File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call await self.app(scope, receive, _send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in call await self.app(scope, receive, send) File "/root/anaconda3/envs/sd/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 "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 762, in call await self.middleware_stack(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 782, in app await route.handle(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle await self.app(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 77, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/routing.py", line 72, in app response = await func(request) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app raise e File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app raw_response = await run_endpoint_function( File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/fastapi/routing.py", line 193, in run_endpoint_function return await run_in_threadpool(dependant.call, *values) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/starlette/concurrency.py", line 40, in run_in_threadpool return await anyio.to_thread.run_sync(func, args) File "/root/anaconda3/envs/sd/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 "/root/anaconda3/envs/sd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/gradio/routes.py", line 291, in api_info return gradio.blocks.get_api_info(config, serialize) # type: ignore File "/root/anaconda3/envs/sd/lib/python3.10/site-packages/gradio/blocks.py", line 528, in get_api_info serializer = serializing.COMPONENT_MAPPING[type]() KeyError: 'dataset'