Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_message(message, history):
|
| 5 |
-
choices = ["yes", "no"]
|
| 6 |
chat_answer = random.choice(choices)
|
| 7 |
return chat_answer
|
| 8 |
|
| 9 |
print("Hello, World!")
|
| 10 |
-
chatbot = gr.ChatInterface(random_message, type = "messages", theme = "
|
| 11 |
|
| 12 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_message(message, history):
|
| 5 |
+
choices = ["yes.", "no.", "it is certain","without a doubt","outlook good","ask again later", "better not tell you now","very doubtful","don't count on it","my sources say no","outlook not so good","very doubtful,"reply hazing, try again", "cannot predict now"]
|
| 6 |
chat_answer = random.choice(choices)
|
| 7 |
return chat_answer
|
| 8 |
|
| 9 |
print("Hello, World!")
|
| 10 |
+
chatbot = gr.ChatInterface(random_message, type = "messages", theme = "xkcd", editable = True, title = "eightball" )
|
| 11 |
|
| 12 |
chatbot.launch()
|