Hugging Face's logo
Cran-May
/
Runtime error

runtime error

sspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore File "/home/user/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 106, in sync raise return_result File "/home/user/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 61, in _runner result[0] = await coro File "/home/user/.local/lib/python3.10/site-packages/gradio/helpers.py", line 285, in create await self.cache() File "/home/user/.local/lib/python3.10/site-packages/gradio/helpers.py", line 342, in cache prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1389, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1094, in call_function prediction = await anyio.to_thread.run_sync( File "/home/user/.local/lib/python3.10/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.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 703, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 57, in process_example for x in generator: File "/home/user/app/app.py", line 51, in generate for response in generator: File "/home/user/app/model.py", line 24, in run for response in llm.create_chat_completion(history,stop=["</s>"],stream=True,max_tokens=-1,temperature=temperature,top_k=top_k,top_p=top_p,repeat_penalty=1.1): File "/home/user/.local/lib/python3.10/site-packages/ctransformers/llm.py", line 321, in __getattr__ raise AttributeError(f"'LLM' object has no attribute '{name}'") AttributeError: 'LLM' object has no attribute 'create_chat_completion'

Container logs:

Fetching error logs...