chattest / run.py
aliabid94's picture
aliabid94 HF staff
Update run.py
2bc74a6 verified
raw
history blame contribute delete
252 Bytes
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()