runtime error
Exit code: 1. Reason: await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app raise exc File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app response = await f(request) File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app raw_response = await run_endpoint_function( File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function return await dependant.call(**values) File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 1630, in startup_events await app.get_blocks().run_extra_startup_events() File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 3037, in run_extra_startup_events await startup_event() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 469, in _start_caching await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 535, in cache prediction = await self.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2156, in process_api data = await self.postprocess_data(block_fn, result["prediction"], state) File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1890, in postprocess_data self.validate_outputs(block_fn, predictions) # type: ignore File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1845, in validate_outputs raise ValueError( ValueError: A function (predict_specialty) didn't return enough output values (needed: 3, returned: 1). Output components: [label, textbox, json] Output values returned: [{'Primary Specialty': 'Psychiatry', 'Confidence': '97.4%', 'Alternative Suggestions': ['Neurology', 'Endocrinology']}]
Container logs:
Fetching error logs...