runtime error
Exit code: 1. Reason: o_cached_examples/12' Caching example 1/1 Traceback (most recent call last): File "/home/user/app/app.py", line 36, in <module> demo = gr.Interface(ner, File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 469, in __init__ self.render_examples() File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 828, in render_examples self.examples_handler = Examples( File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 74, in create_examples client_utils.synchronize_async(examples_obj.create) File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 517, in synchronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 276, in create await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 332, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1395, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1329, in postprocess_data prediction_value = block.postprocess(prediction_value) File "/usr/local/lib/python3.10/site-packages/gradio/components/highlighted_text.py", line 158, in postprocess entities = sorted(entities, key=lambda x: x["start"]) File "/usr/local/lib/python3.10/site-packages/gradio/components/highlighted_text.py", line 158, in <lambda> entities = sorted(entities, key=lambda x: x["start"]) TypeError: string indices must be integers IMPORTANT: You are using gradio version 3.39.0, however version 4.44.1 is available, please upgrade. --------
Container logs:
Fetching error logs...