Spaces:
Sleeping
Sleeping
added new responses
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_message(message, history):
|
| 5 |
-
choices = ["
|
| 6 |
chat_answer = random.choice(choices)
|
| 7 |
return chat_answer
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(random_message, type = "messages", title = "
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_message(message, history):
|
| 5 |
+
choices = ["it is likely", "absolutely not", "try again", "without a doubt", "outlook good", "signs point to it", "very unlikely", "quite doubtful"]
|
| 6 |
chat_answer = random.choice(choices)
|
| 7 |
return chat_answer
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(random_message, type = "messages", title = "Random Response Chatbot")
|
| 10 |
|
| 11 |
chatbot.launch()
|