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