Skip to content

Not working on Cloud9 #3

@LucMacPaquet

Description

@LucMacPaquet

Hi. I always got this on the client side.

Transformer is in place.

Thanks for your help.

File "/home/ubuntu/.local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/home/ubuntu/environment/building-gen-ai-agent-on-aws/agent_aws_st.py", line 92, in
main()
File "/home/ubuntu/environment/building-gen-ai-agent-on-aws/agent_aws_st.py", line 88, in main
app()
File "/home/ubuntu/environment/building-gen-ai-agent-on-aws/agent_aws_st.py", line 53, in app
agent = load_agent()
File "/home/ubuntu/.local/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 211, in wrapper
return cached_func(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 240, in call
return self._get_or_create_cached_value(args, kwargs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 266, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 320, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/home/ubuntu/environment/building-gen-ai-agent-on-aws/agent_aws_st.py", line 17, in load_agent
return agent_setup.start_agent()
File "/home/ubuntu/environment/building-gen-ai-agent-on-aws/agent_setup.py", line 302, in start_agent
agent = HfAgent(
File "/home/ubuntu/.local/lib/python3.9/site-packages/transformers/tools/agents.py", line 625, in init
super().init(
File "/home/ubuntu/.local/lib/python3.9/site-packages/transformers/tools/agents.py", line 210, in init
_setup_default_tools()
File "/home/ubuntu/.local/lib/python3.9/site-packages/transformers/tools/agents.py", line 104, in _setup_default_tools
tool_class = getattr(tools_module, tool_class_name)
File "/home/ubuntu/.local/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1092, in getattr
raise AttributeError(f"module {self.name} has no attribute {name}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions