Spaces:
Sleeping
Sleeping
fixed formating and added more options
Browse files
app.py
CHANGED
|
@@ -2,16 +2,7 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def respond_magic_eight_ball(message, history):
|
| 5 |
-
responses = random.choices (["It is certain"
|
| 6 |
-
"It is decidedly so"
|
| 7 |
-
"Without a doubt"
|
| 8 |
-
"Yes, definitely"
|
| 9 |
-
"You may rely on it"
|
| 10 |
-
"As I see it, yes"
|
| 11 |
-
"Most likely"
|
| 12 |
-
"Outlook good"
|
| 13 |
-
"Yes"
|
| 14 |
-
"Signs point to yes"])
|
| 15 |
return random.choice (responses)
|
| 16 |
|
| 17 |
chatbot = gr.ChatInterface(respond_magic_eight_ball, type='messages')
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def respond_magic_eight_ball(message, history):
|
| 5 |
+
responses = random.choices (["It is certain", "It is decidedly so","Without a doubt", "Yes, definitely", "You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Don't count on it", "My reply is no"," My sources say no", "Outlook not so good", "Very doubtful" ])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
return random.choice (responses)
|
| 7 |
|
| 8 |
chatbot = gr.ChatInterface(respond_magic_eight_ball, type='messages')
|