import gradio as gr js = """ function redirect() { window.location.href = = 'https://41e124ab.gradio-website.pages.dev/playground'; } """ with gr.Blocks(js=js) as demo: pass demo.launch()