runtime error

Exit code: 1. Reason: tool.py: 0%| | 0.00/635 [00:00<?, ?B/s] tool.py: 100%|██████████| 635/635 [00:00<00:00, 5.64MB/s] TOOL CODE: from smolagents import Tool from huggingface_hub import InferenceClient class TextToImageTool(Tool): description = "This tool creates an image according to a prompt, which is a text description." name = "image_generator" inputs = {"prompt": {"type": "string", "description": "The image generator prompt. Don't hesitate to add details in the prompt to make the image look better, like 'high-res, photorealistic', etc."}} output_type = "image" model_sdxl = "black-forest-labs/FLUX.1-schnell" client = InferenceClient(model_sdxl) def forward(self, prompt): return self.client.text_to_image(prompt) Traceback (most recent call last): File "/home/user/app/app.py", line 48, in <module> model_3d_generation_tool = Tool.from_space( File "/usr/local/lib/python3.10/site-packages/smolagents/tools.py", line 573, in from_space return SpaceToolWrapper( File "/usr/local/lib/python3.10/site-packages/smolagents/tools.py", line 59, in new_init original_init(self, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/smolagents/tools.py", line 505, in __init__ self.client = Client(space_id, hf_token=token) File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 142, in __init__ raise ValueError( ValueError: The current space is in the invalid state: RUNTIME_ERROR. Please contact the owner to fix this.

Container logs:

Fetching error logs...