runtime error

Space failed. Exit code: 1. Reason: prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1185, 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 661, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 30, in image_predict return caption(image, "png") File "/home/user/app/app.py", line 23, in caption chat_completion = openai.ChatCompletion.create( File "/home/user/.local/lib/python3.10/site-packages/openai/_utils/_proxy.py", line 22, in __getattr__ return getattr(self.__get_proxied__(), attr) File "/home/user/.local/lib/python3.10/site-packages/openai/_utils/_proxy.py", line 43, in __get_proxied__ return self.__load__() File "/home/user/.local/lib/python3.10/site-packages/openai/lib/_old_api.py", line 33, in __load__ raise APIRemovedInV1(symbol=self._symbol) openai.lib._old_api.APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28` A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

Container logs:

Fetching error logs...