Spaces:
Sleeping
Sleeping
Practice making an 8 ball
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
response_options = ["yes", "
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
-
chatbot = gr.ChatInterface(
|
| 9 |
|
| 10 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def magic_eight_ball(message, history):
|
| 5 |
+
response_options = ["Signs point to yes", "Outlook not so good", "It is certain", "Ask again later", "Don't try it"]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(magic_eight_ball, title = "Magic 8 Ball")
|
| 9 |
|
| 10 |
chatbot.launch()
|