MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / load_hugging_tools

Function load_hugging_tools

host_local_tools.py:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 server.load_tool("image_generation")
126
127 def load_hugging_tools():
128 HUGGINGFACE_API_KEY = os.environ.get('HUGGINGFACE_API_KEY', None)
129 if not HUGGINGFACE_API_KEY:
130 raise RuntimeError("Huggingface api key (access tokens) not provided, please register one from https://huggingface.co/ and add it to environment variables.")
131 server.load_tool("hugging_tools")
132
133 def load_gradio_tools():
134 server.load_tool("gradio_tools")

Callers 1

run_tool_serverFunction · 0.85

Calls 1

load_toolMethod · 0.80

Tested by

no test coverage detected