-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Interface Preview in Saved Notebooks #1429
Comments
Thx for the suggestion! Hmm, it would be not that critical but nice to have I presume. Can't think of a way on doing that immediately, do you guys have any idea on how to do it? @merveenoyan, @osanseviero, @abidlabs? |
I think it's good, given even if we want it to be adopted on Kaggle someone who comes across this for the first time will not be able to understand what it's used for (nor for Colab, so it causes loss in getting people on board sort of) |
Interesting, it might be possible by taking a screenshot via javascript when the interface is launched and using that as the fallback if the share URL cannot be found or no longer corresponds to the running Gradio app. I actually think this is a good idea because I've heard from some users that we're starting to have collisions in the share URL, meaning that user A launches an Interface with the URL xxxxx.gradio.app, closes the notebook, then user B launches an Interface that also happens to have the same URL xxxxx.gradio. When user A opens their notebook again, it will show user B's interface embedded in their notebook. Will add this to the roadmap |
curious @abidlabs, would be possible to run Gradio Interface inside the notebooks without the proxy? |
Ah so without the ssh tunnel / public URL? We haven't been able to figure out how to expose the local host inside notebook environments without using the ssh tunnel / public URL. I'm pretty sure its impossible, but would love to be proven wrong if you have any ideas @radames |
The reason I mentioned above -- basically, the Interface runs locally on colab machine's port 7860, but that port is not exposed to users. We haven't been able to figure out how to expose the local host inside notebook environments without using the ssh tunnel / public URL / share=True. |
What I actually meant was, we could have share off in Colab by default as well, like in local case. |
Ah that was the default behavior initially, but then people would click on the localhost link expecting to see the Interface, and it was not visible. That's why we made it |
In Kaggle it currently looks like this for 72 hours thanks to sharing: |
When I save a colab notebook or any notebook that has Gradio UI, below shows up instead of a preview of a UI. That would be nice to save a preview of UI even if it doesn't run.
Also in kaggle I get below.
It's probably not high priority but a veeeery nice to have 🙂
cc @osanseviero since we discussed it.
The text was updated successfully, but these errors were encountered: