Spaces:
Sleeping
Sleeping
magic eight ball
Browse files
app.py
CHANGED
|
@@ -2,8 +2,12 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message, history):
|
| 5 |
-
response_options = ["yes", "no"]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
-
chatbot = gr.ChatInterface(random_response)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message, history):
|
| 5 |
+
response_options = ["yes", "no", "maybe", "try again"]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(random_response)(
|
| 9 |
+
respond,
|
| 10 |
+
title = "Magic Eight Ball",
|
| 11 |
+
description - "I can predict your future!"
|
| 12 |
+
)
|
| 13 |
chatbot.launch()
|