Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
+
|
| 4 |
+
def random_respond(message, history):
|
| 5 |
+
responses = ["yes", "no"]
|
| 6 |
+
return responses[random.randint(0,2)]
|
| 7 |
+
|
| 8 |
+
chatbot = gr.ChatInterface(random_respond)
|
| 9 |
+
chatbot.launch()
|