You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
another utility for demos: just pushed cloudflared-tunnel to pypi. Works similarly to public gradio links, but uses cloudflare and links never expire. To use:
#! pip install cloudflared-tunnel
import gradio as gr
import cloudflared_tunnel
with gr.Blocks() as demo:
# setup your demo here
...
with cloudflared_tunnel.run() as port:
demo.launch(show_api=False, server_port=port)
It will spit out something like the following:
* Running on https://considering-fame-from-household.trycloudflare.com/
* Traffic stats available on http://127.0.0.1:9835/metrics
Running on local URL: http://127.0.0.1:8972/
To create a public link, set `share=True` in `launch()`.
Then you can use the url .trycloudflare.com to connect to your demo 🙂
The text was updated successfully, but these errors were encountered:
another utility for demos: just pushed cloudflared-tunnel to pypi. Works similarly to public gradio links, but uses cloudflare and links never expire. To use:
It will spit out something like the following:
Then you can use the url .trycloudflare.com to connect to your demo 🙂
The text was updated successfully, but these errors were encountered: