added things
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random as rd
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
| 6 |
-
random_choose = rd.choice(
|
| 7 |
return random_choose
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(
|
| 10 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random as rd
|
| 3 |
|
| 4 |
+
def magic_eight_ball(message,history):
|
| 5 |
+
responses = ["It is certain", "Without a doubt","Better not tell you now", "Don't count on it"]
|
| 6 |
+
random_choose = rd.choice(responses)
|
| 7 |
return random_choose
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(magic_eight_ball, type = 'messages', title = 'Best Friend', description = 'Ask me your most pressing questions!', theme = 'mgetz/Celeb_Glitzy')
|
| 10 |
chatbot.launch()
|