File size: 235 Bytes
d8ca99b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr

with gr.Blocks() as demo:
    with gr.Tab("Text-to-Image"):
        gr.Image("lion.jpg")
        gr.Button("New Lion")
    with gr.Tab("Image-to-Image"):
        gr.Image("tiger.jpg")
        gr.Button("New Tiger")