()
| 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") |
no test coverage detected