File size: 663 Bytes
d8ca99b
 
 
0684317
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5753d99
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

with gr.Blocks() as demo:
    gr.Markdown("""
    # IP-Adapter Playground

    by [Tony Assi](https://www.tonyassi.com/)
    """)
    with gr.Row():
        with gr.Tab("Text-to-Image"):
            text_ip = gr.Image()
            text_textbox = gr.Textbox()
            text_button = gr.Button("Generate")
        with gr.Tab("Image-to-Image"):
            image_ip = gr.Image()
            image_image = gr.Image()
            image_textbox = gr.Textbox()
            image_button = gr.Button("Generate")
        with gr.Tab("Inpainting"):
            inpaint_button = gr.Button("Generate")
        output_image = gr.Image()

demo.launch()