Display of gradio in google colab is not good

In Google Colab notebook, below is the sequence of code (very basic python application) of gradio is checked if it works !

import gradio as gr
def update(name):
    return f"Welcome to Gradio, {name}!"

with gr.Blocks() as demo:
    gr.Markdown("Start typing below and then click **Run** to see the output.")
    with gr.Row():
        inp = gr.Textbox(placeholder="What is your name?")
        out = gr.Textbox()
    btn = gr.Button("Run")
    btn.click(fn=update, inputs=inp, outputs=out)

demo.launch()

Prior to this the installation of gradio is done by below code :
%pip install gradio

Previously when this problem is faced, attempted below solution from Gradio apps are not displaying properly in Google Colab notebooks (ipynb files) · Issue #8159 · gradio-app/gradio · GitHub and it worked…

!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!dpkg -i cloudflared-linux-amd64.deb

But now it does not work. Can you please suggest a solution please please please …

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.