Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 magic_8_ball(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(
|
| 12 |
+
magic_8_ball,
|
| 13 |
+
title = "Magic 8 Ball",
|
| 14 |
+
description = "Ask any yes or no question to learn about your future",
|
| 15 |
+
type = "messages"
|
| 16 |
+
)
|
| 17 |
#defining my chatbot so users can interact and see their conversation history and send new messages!
|
| 18 |
|
| 19 |
chatbot.launch()
|