Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
return random.choice(['
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
chatbot = gr.ChatInterface(
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def eight_ball(message,history):
|
| 5 |
+
return random.choice(['It is certain', 'Reply hazy, try again', 'Don’t count on it',
|
| 6 |
+
'It is decidedly so', 'Ask again later', 'My reply is no',
|
| 7 |
+
'Without a doubt', 'Better not tell you now', 'My sources say no',
|
| 8 |
+
'Yes definitely', 'Cannot predict now', 'Outlook not so good',
|
| 9 |
+
'You may rely on it', 'Concentrate and ask again', 'Very doubtful'])
|
| 10 |
|
| 11 |
+
chatbot = gr.ChatInterface(eight_ball, type="messages")
|
| 12 |
chatbot.launch()
|