Hugging Face's logo
SHOOL45
/
Runtime error

runtime error

ing: Use `scale` in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not. toggle_dark = gr.Button(value="Toggle Dark").style(full_width=True) Traceback (most recent call last): File "/home/user/app/app.py", line 70, in <module> img = gr.Image( File "/home/user/.local/lib/python3.10/site-packages/gradio/components/image.py", line 152, in __init__ IOComponent.__init__( File "/home/user/.local/lib/python3.10/site-packages/gradio/components/base.py", line 182, in __init__ else self.postprocess(initial_value) File "/home/user/.local/lib/python3.10/site-packages/gradio/components/image.py", line 302, in postprocess return client_utils.encode_url_or_file_to_base64(y) File "/home/user/.local/lib/python3.10/site-packages/gradio_client/utils.py", line 386, in encode_url_or_file_to_base64 return encode_url_to_base64(path) File "/home/user/.local/lib/python3.10/site-packages/gradio_client/utils.py", line 374, in encode_url_to_base64 resp.raise_for_status() File "/home/user/.local/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/spaces/YTheme/SmartLearn/resolve/main/header-image.jpg During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 12, in <module> with gr.Blocks(theme=THEME) as demo: File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1477, in __exit__ self.config = self.get_config_file() File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1444, in get_config_file props = block.get_config() if hasattr(block, "get_config") else {} File "/home/user/.local/lib/python3.10/site-packages/gradio/components/image.py", line 177, in get_config "value": self.value, AttributeError: 'Image' object has no attribute 'value'

Container logs:

Fetching error logs...