-
Notifications
You must be signed in to change notification settings - Fork 103
Positron web doesn't load Gradio HTML/CSS correctly #7172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related ZD ticket: #115309 |
The Gradio app appears to load as expected locally in Positron Desktop and Positron Server Web; however, the underlying url is actually incorrect in the Gradio app in Positron Desktop and Positron Server Web as well, although you wouldn't be able to tell as the app looks to load just fine! The following screenshots show that the Positron Server Web![]() Positron Desktop![]() Positron on WorkbenchThe ![]() If you manually set the ![]() This seems to be a bug in Gradio where the framework expects the I don't think we could resolve this in Positron without writing some hacky path rewriting -- I think this may need to be patched in Gradio. I'll take a closer look at the existing issues there and see what the status is. |
I've proposed a change to gradio to resolve gradio-app/gradio#11164. |
I looked into how we might handle rewriting the the I think we'd need to somehow pass the app url (targetOrigin) and proxy url to a place where we can wait for the content to load, then do a second pass at content rewriting once Gradio has injected the content. A few challenges with this:
Gradio loads various resources dynamically, and these other resources are loaded with the expected href paths, so I still wonder if Gradio could consider loading |
Triage: Can this wait until Post-RC? |
System details:
Positron and OS details:
Posit Workbench demo server:
Positron Version: 2025.04.0 (Universal) build 224
Code - OSS Version: 1.98.0
Commit: dfb5274
Date: 2025-03-31T03:29:39.838Z
Electron: 34.2.0
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Darwin arm64 24.3.0
Interpreter details:
Python 3.12.0
Describe the issue:
On Posit Workbench: Positron Pro, the full set of CSS and images are not loaded properly for Gradio apps.
Steps to reproduce the issue:
Python file:
Expected or desired behavior:
Should appear as on desktop:
Were there any error messages in the UI, Output panel, or Developer Tools console?
The text was updated successfully, but these errors were encountered: