Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
print("✨ Welcome to Magic 🎱 Ball. ✨ Ask me any question... ")
|
| 5 |
-
|
| 6 |
def magicEight(message, history):
|
| 7 |
|
| 8 |
answers = ["The outlook is good!", "No, sorry", "Maybe", "Ask me again"]
|
|
@@ -10,6 +8,6 @@ def magicEight(message, history):
|
|
| 10 |
return message
|
| 11 |
|
| 12 |
chatbot = gr.ChatInterface(
|
| 13 |
-
magicEight, chatbot="Welcome! Ask the Magic Eight Ball your question!", type="messages")
|
| 14 |
|
| 15 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
|
|
|
|
|
|
| 4 |
def magicEight(message, history):
|
| 5 |
|
| 6 |
answers = ["The outlook is good!", "No, sorry", "Maybe", "Ask me again"]
|
|
|
|
| 8 |
return message
|
| 9 |
|
| 10 |
chatbot = gr.ChatInterface(
|
| 11 |
+
magicEight, chatbot="Welcome! Ask the Magic Eight Ball your question! 🎱", type="messages")
|
| 12 |
|
| 13 |
chatbot.launch()
|