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