b08ab7d
2bc74a6
b08ab7d
2bc74a6
|
|
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() |