Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
-
chatbot = gr.ChatInterface(
|
| 7 |
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def magic_eight_ball(message, history):
|
| 5 |
+
responses = ["Yes, definitely!", "No not at all." , "If you put your heart into it! Of course!", "I'm not sure.." , "Ask again later!"]
|
| 6 |
+
return random.choice(responses)
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(magic_eight_ball)
|
| 9 |
|
| 10 |
chatbot.launch()
|