Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
| 6 |
|
| 7 |
print("Hello, world!")
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def echo(message, history):
|
| 5 |
+
return random.choice(["Yes", "No"])
|
| 6 |
|
| 7 |
print("Hello, world!")
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(echo)
|
| 10 |
|
| 11 |
chatbot.launch()
|