How to serve an HTML file?

Hi @mandyvarel just chiming in here. So we don’t support share links using this approach (there are other free solutions like ngrok which can allow you create a public link for any arbitrary local server you could try)

But I wanted to potentially suggest a simpler solution. If you do not need the URL to be exactly https://123455a.gradio.live/output.html, then Gradio does allow you to serve static files in the same directory (or child directory) using the https://123455a.gradio.live/file= URL prefix. In your case, something like: https://123455a.gradio.live/file=output.html would produce the HTML file. (This approach means that you wouldn’t have to mount Gradio at all and should work locally and using the share links)

2 Likes