Update run.py
Browse files
run.py
CHANGED
@@ -1,6 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
chat = gr.Chatbot()
|
5 |
+
text = gr.Textbox()
|
6 |
|
7 |
+
def add(new_text, history):
|
8 |
+
return history + [[new_text, "yes"]]
|
9 |
+
|
10 |
+
|
11 |
+
text.submit(add, [text, chat], chat)
|
12 |
+
|
13 |
+
gr.LoginButton()
|
14 |
+
|
15 |
+
demo.launch()
|