runtime error
es/gradio/utils.py", line 516, in synchronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) File "/home/user/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/home/user/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/home/user/.local/lib/python3.10/site-packages/gradio/helpers.py", line 277, in create await self.cache() File "/home/user/.local/lib/python3.10/site-packages/gradio/helpers.py", line 311, in cache prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1075, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 884, 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/app/app.py", line 100, in greet bm25 = search(query) File "/home/user/app/app.py", line 88, in search answer = new_ask(f"Answer the following query by giving arguments from the different arguments provided below. Make sure to quote the article used if the argument corrseponds to the query: Query: {query} Articles {ln.join([x['title'] + ': ' + x['summary'] for i, x in enumerate(tier_1)])}\nUse careful reasoning to explain your answer and give your conclusion about this.") File "/home/user/app/app.py", line 39, in new_ask response = openai.ChatCompletion.create(model ="gpt-3.5-turbo", NameError: name 'openai' is not defined. Did you mean: 'open'?
Container logs:
Fetching error logs...