Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,12 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
|
| 5 |
-
def
|
| 6 |
-
choices = ('yes','no')
|
| 7 |
wow = random.choice(choices)
|
| 8 |
return wow
|
| 9 |
-
chatbot = gr.ChatInterface(
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
|
| 5 |
+
def random_message (message, history):
|
| 6 |
+
choices = ('yes','no','i don't think so,"be so for real','yep', 'woooow', 'hmmmm', 'idk', 'idc', 'yaaay', 'why would i know')
|
| 7 |
wow = random.choice(choices)
|
| 8 |
return wow
|
| 9 |
+
chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatty")
|
| 10 |
+
|
| 11 |
|
| 12 |
|
| 13 |
chatbot.launch()
|