runtime error

e.py", line 484, in __init__ self.render_examples() File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 744, in render_examples self.examples_handler = Examples( File "/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py", line 69, in create_examples utils.synchronize_async(examples_obj.create) File "/home/user/.local/lib/python3.8/site-packages/gradio/utils.py", line 403, in synchronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 106, in sync raise return_result File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 61, in _runner result[0] = await coro File "/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py", line 273, in create await self.cache() File "/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py", line 308, in cache prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1012, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 830, in call_function prediction = await anyio.to_thread.run_sync( File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "app.py", line 19, in predict return detect_obstacles_3(model, img, alert=True, obj_h_limit=None, show=True, File "/home/user/.local/lib/python3.8/site-packages/dreamai_obj/core.py", line 114, in detect_obstacles_3 torch.cuda.empty_cache() NameError: name 'torch' is not defined

Container logs:

Fetching error logs...