runtime error

/usr/local/lib/python3.10/site-packages/langchain/llms/__init__.py:548: LangChainDeprecationWarning: Importing LLMs from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead: `from langchain_community.llms import OpenAI`. To install langchain-community run `pip install -U langchain-community`. warnings.warn( /usr/local/lib/python3.10/site-packages/langchain/chat_models/__init__.py:31: LangChainDeprecationWarning: Importing chat models from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead: `from langchain_community.chat_models import ChatOpenAI`. To install langchain-community run `pip install -U langchain-community`. warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 66, in <module> gr.Image(label="Generated Plot", type="pil", optional=True), # Mark the plot as optional File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 160, in wrapper return fn(self, **kwargs) TypeError: Image.__init__() got an unexpected keyword argument 'optional'

Container logs:

Fetching error logs...