Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
return random.choice(['
|
| 6 |
|
| 7 |
# def echo(message, history):
|
| 8 |
# return message
|
| 9 |
|
| 10 |
print("Hello World!")
|
| 11 |
-
chatbot = gr.ChatInterface(
|
| 12 |
#defining my chatbot so users can interact and see their conversation history and send new messages!
|
| 13 |
|
| 14 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def 8ball(message, history):
|
| 5 |
+
return random.choice(['Let's goooo!!!!!', 'Yes haha', 'NO', 'GREAT!!!'])
|
| 6 |
|
| 7 |
# def echo(message, history):
|
| 8 |
# return message
|
| 9 |
|
| 10 |
print("Hello World!")
|
| 11 |
+
chatbot = gr.ChatInterface(8ball, title = "Magic 8 Ball", type = "messages")
|
| 12 |
#defining my chatbot so users can interact and see their conversation history and send new messages!
|
| 13 |
|
| 14 |
chatbot.launch()
|