gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Icons are not shown properly after update to 4.44.1

Open Onturenio opened this issue 4 months ago • 2 comments

Describe the bug

I'm using buttons with icons in my application. However since a gradio update, they are shown as broken links, despite the fact that the URL is reachable.

Have you searched existing issues? 🔎

  • [X] I have searched and found no existing issues

Reproduction

import gradio as gr

with gr.Blocks() as demo:
    with gr.Column():
        # create the chatbot UI
        chatbot = gr.Chatbot(
            elem_id="chatbot",
            container=False,
            value="",
            bubble_full_width=False,
            elem_classes="noborder",
        )
        with gr.Row():
            # Clear button.
            btn_clear = gr.Button(
                scale=1,
                min_width=10,
                value="",
                icon="clean.svg",
                # variant="primary",
            )

            # input box
            input_box = gr.Textbox(
                scale=12,
                show_label=False,
                placeholder="",
                container=False,
            )

            # Send button.
            btn_send = gr.Button(
                scale=1,
                min_width=10,
                value="",
                icon="./arrow.svg",
                variant="primary",
                interactive=True,
            )

# launches the app in a new local port
demo.queue()

demo.launch(inbrowser=False, share=False)

Screenshot

Captura desde 2024-10-08 19-38-27

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.44.1
gradio_client version: 1.3.0

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.6.0
fastapi: 0.115.0
ffmpy: 0.4.0
gradio-client==1.3.0 is not installed.
httpx: 0.27.2
huggingface-hub: 0.25.1
importlib-resources: 6.4.5
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.9.2
numpy: 1.26.4
orjson: 3.10.7
packaging: 24.1
pandas: 2.2.3
pillow: 10.4.0
pydantic: 2.9.2
pydub: 0.25.1
python-multipart: 0.0.12
pyyaml: 6.0.2
ruff: 0.6.9
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.5
typing-extensions: 4.12.2
urllib3: 2.2.3
uvicorn: 0.31.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.9.0
httpx: 0.27.2
huggingface-hub: 0.25.1
packaging: 24.1
typing-extensions: 4.12.2
websockets: 12.0

Severity

Blocking usage of gradio

Onturenio avatar Oct 08 '24 17:10 Onturenio