abidlabs's picture
abidlabs HF staff
Upload folder using huggingface_hub
0bf5eb4
raw
history blame
466 Bytes
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()