File size: 252 Bytes
b08ab7d
 
2bc74a6
 
 
b08ab7d
2bc74a6
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

with gr.Blocks() as demo:
    chat = gr.Chatbot()
    text = gr.Textbox()

    def add(new_text, history):
        return history + [[new_text, "yes"]]


    text.submit(add, [text, chat], chat)

    gr.LoginButton()

demo.launch()