File size: 466 Bytes
e20bcf8
 
 
 
 
804100a
 
 
 
e20bcf8
 
 
0bf5eb4
804100a
e20bcf8
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

import gradio as gr
from gradio_gptchatbot import GPTChatbot


example = [
    ("How do I create a Gradio app?",
    "You can create a Gradio app by...")
]

with gr.Blocks() as demo:
    with gr.Row():
        GPTChatbot(label="Blank", placeholder_title="GradioGPT", placeholder_image="https://i.ibb.co/H2kSY2R/Gradio-component-1.png"),  # blank component
        GPTChatbot(value=example, label="Populated", layout="panel"),  # populated component


demo.launch()