Spaces:
Sleeping
Sleeping
magic eight ball
Browse files
app.py
CHANGED
|
@@ -1,12 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
list=["Yes!","No.","Yes, definetely!", "Most Likely."]
|
| 8 |
-
output=random.choice(list)
|
| 9 |
-
return output
|
| 10 |
|
| 11 |
-
chatbot = gr.ChatInterface(
|
| 12 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def magic_eight_ball(message, history):
|
| 5 |
+
responses=["Yes!","No.","Yes, definetely!", "Most Likely."]
|
| 6 |
+
return random.choice(responses)
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(magic_eight_ball, type="messages")
|
| 9 |
chatbot.launch()
|