joaogante's picture
joaogante HF Staff
initial commit
7aef7b8
raw
history blame
351 Bytes
import gradio as gr
def update(name):
return f"Welcome to Gradio, {name}!"
demo = gr.Blocks()
with demo:
with gr.Tabs():
with gr.TabItem("Lion"):
gr.Image("lion.jpg")
gr.Button("New Lion")
with gr.TabItem("Tiger"):
gr.Image("tiger.jpg")
gr.Button("New Tiger")
demo.launch()