This applies to all versions of Domino.
Gradio’s “Hello, World” demo fails to render in a Jupyter workspace and/or a browser window.
There is a bug in the Gradio package which strips the trailing slash from URLs being loaded in-line, i.e. in the notebook.
Download the attached example Jupyter notebook to get started using Gradio in Domino. This runs on the current Domino Standard Environment (DSE) and DSE with GPU images. The app renders both in the Jupyter workspace and in a browser tab. In this line, replace the URL demo2.dominodatalab.com with your deployment's URL (without https://):
- host = os.environ.get('GRADIO_PROXY_HOST') or \"demo2.dominodatalab.com\"\n",
Please note that you’ll need access to jupyter-server-proxy >=3.2.2 and access to the Pypi repositories to download the Gradio packages.
- To check the version in a Jupyter Terminal, run pip list | grep -i jupyter-server-proxy