fix spaces#2567
Conversation
|
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2567-all-demos |
|
Going to release a beta version so I can test this out on Spaces |
|
Hey @pngwn I don't think this is working for me correctly.
<!DOCTYPE html>
<html>
<body>
<script type="module"
src="https://gradio.s3-us-west-2.amazonaws.com/3.8b1/gradio.js">
</script>
<gradio-app space="abidlabs/test-3.8b1"></gradio-app>
</body>
</html>However, I get the same error: Here's the console: In other words, now it looks like both the Space URL and the embedding URL are being combined together Note that if I do the same steps using |
|
Ah, you're seeing this because you aren't running the html on a server locally but this same error would have occurred if the gradio embed was on a non root path. I've pushed a fix that should resolve that. |
|
LGTM! Let me update the version and we can merge this in |

Ensure spaces always uses correct api endpoint when queueing.
Description
Please include:
Closes: # (issue)
Checklist:
A note about the CHANGELOG
Hello 👋 and thank you for contributing to Gradio!
All pull requests must update the change log located in CHANGELOG.md, unless the pull request is labeled with the "no-changelog-update" label.
Please add a brief summary of the change to the Upcoming Release > Full Changelog section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by
[@myusername](link-to-your-github-profile)in[PR 11111](https://github.com/gradio-app/gradio/pull/11111)".If you would like to elaborate on your change further, feel free to include a longer explanation in the other sections.
If you would like an image/gif/video showcasing your feature, it may be best to edit the CHANGELOG file using the
GitHub web UI since that lets you upload files directly via drag-and-drop.