Spaces:
Sleeping
Sleeping
Replaced echo with a yes or no function
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return
|
| 5 |
|
| 6 |
print ("Hello, world!")
|
| 7 |
-
chatBot = gr.ChatInterface(
|
| 8 |
chatBot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def yes_or_no(message, history):
|
| 5 |
+
return random.choice(["Yes","No"])
|
| 6 |
|
| 7 |
print ("Hello, world!")
|
| 8 |
+
chatBot = gr.ChatInterface(yes_or_no, type = "messages")
|
| 9 |
chatBot.launch()
|