gradio/demo/blocks_static/run.ipynb
Archit-Kohli 921716f618
Fixed visibility issue for all notebooks on GitHub (#5917)
* fixed visibility error in notebooks in github

* Delete fixNotebooks.py

deleted script used to fix notebooks

* Update generate_notebooks.py

fixed a small bug that prevented visibility of notebooks in GitHub
2023-10-15 18:16:57 -07:00

901 B

Gradio Demo: blocks_static

In [ ]:
!pip install -q gradio 
In [ ]:
import gradio as gr

demo = gr.Blocks()

with demo:
    gr.Image(
        "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80"
    )
    gr.Textbox("hi")
    gr.Number(3)

if __name__ == "__main__":
    demo.launch()