runtime error
Exit code: 1. Reason: ine 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 479, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1788, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1338, in call_function prediction = await fn(*processed_input) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 726, in async_wrapper response = await f(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 450, in get_final_item async for x in self.fn(*args): # noqa: B007 # type: ignore File "/usr/local/lib/python3.10/site-packages/gradio/chat_interface.py", line 639, in _examples_stream_fn async for response in generator: File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 576, in __anext__ return await anyio.to_thread.run_sync( File "/usr/local/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 "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2405, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 914, in run result = context.run(func, *args) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 559, in run_sync_iterator_async return next(iterator) File "/usr/local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 35, in generator_context response = gen.send(None) File "/home/user/app/app.py", line 53, in generate input_ids = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt") NameError: name 'tokenizer' is not defined. Did you mean: 'AutoTokenizer'?
Container logs:
Fetching error logs...