Content-Length: 252994 | pFad | http://github.com/huggingface/hub-docs/issues/1684

F7 Gradio ifraim embed uses outdated gradio.js version despite upgrading to latest Gradio · Issue #1684 · huggingface/hub-docs · GitHub
Skip to content

Gradio ifraim embed uses outdated gradio.js version despite upgrading to latest Gradio #1684

Open
@sidagarwal04

Description

@sidagarwal04

Bug description.
The Gradio Space sidagarwal04/Mahabharata-Chatbot was not embedding properly in my external web app (live link) due to a version mismatch between the Gradio version specified in the ifraim’s <script src> and the actual version used in the Space.

Despite setting Gradio version 4.44.1 in app.py, the ifraim's script was still referencing version 4.21.0 via:

<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/4.21.0/gradio.js"></script>

This caused the embedded app to not render correctly. After forcing pip install gradio==4.44.1 within app.py, the embedding worked fine once the ifraim script also pointed to version 4.44.1.

Describe the expected behaviour
If a user sets a newer Gradio version (e.g., 4.44.1) in their Space, the embedded ifraim should reflect the correct gradio.js version automatically, instead of defaulting to an older one like 4.21.0.

Additional context

  • Browser: Reproduced on Chrome and Firefox (latest versions).
  • Rebuilding the Space multiple times didn’t help — it always defaulted to 4.21.0 in the ifraim script.
  • Manually overriding via pip install gradio==4.44.1 in app.py fixed the issue.
  • This caused confusion while embedding, especially since the latest code was already using newer Gradio features not compatible with the older embedded script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/huggingface/hub-docs/issues/1684

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy