runtime error
Exit code: 1. Reason: /usr/local/lib/python3.10/site-packages/langchain/_api/module_import.py:92: LangChainDeprecationWarning: Importing load_tools from langchain.agents is deprecated. Please replace deprecated imports: >> from langchain.agents import load_tools with new imports of: >> from langchain_community.agent_toolkits.load_tools import load_tools You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/v0.2/docs/versions/v0_2/> warn_deprecated( You're loading a tool from the Hub from None. Please make sure this is a source that you trust as the code within that tool will be executed on your machine. Always verify the code of the tools that you load. We recommend specifying a `revision` to ensure you're loading the code that you have checked. Traceback (most recent call last): File "/home/user/app/app.py", line 20, in <module> image_generation_tool = load_tool("m-ric/text-to-image") File "/usr/local/lib/python3.10/site-packages/transformers/agents/tools.py", line 702, in load_tool return Tool.from_hub(task_or_repo_id, model_repo_id=model_repo_id, token=token, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/agents/tools.py", line 289, in from_hub tool_class = get_class_from_dynamic_module(tool_class, repo_id, token=token, **hub_kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 502, in get_class_from_dynamic_module final_module = get_cached_module_file( File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 327, in get_cached_module_file modules_needed = check_imports(resolved_module_file) File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 182, in check_imports raise ImportError( ImportError: This modeling file requires the following packages that were not found in your environment: smolagents. Run `pip install smolagents`
Container logs:
Fetching error logs...