abidlabs's picture
abidlabs HF staff
Upload folder using huggingface_hub
804100a
raw
history blame
366 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"), # blank component
GPTChatbot(value=example, label="Populated", layout="panel"), # populated component
demo.launch()