Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
return message
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def echo(message, history):
|
| 5 |
return message
|
| 6 |
|
| 7 |
+
def yes_no(message, history):
|
| 8 |
+
responses = ["Yes", "No"]
|
| 9 |
+
return random.choice(responses)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
chatbot = gr.ChatInterface(yes_no, type="messages", theme="mgetz/matt_theme_1")
|
| 13 |
chatbot.launch()
|