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()image1599×749 39.6 KBPrior to this the installation of gradio is done by below code :%pip install gradio
2024-04-30T17:15:30Z
Previously when this problem is faced, attempted below solution fromGradio apps are not displaying properly in Google Colab notebooks (ipynb files) · Issue #8159 · gradio-app/gradio · GitHuband it worked…!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!dpkg -i cloudflared-linux-amd64.debBut now it does not work. Can you please suggest a solution please please please …
2024-05-08T11:02:55Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.