File size: 459 Bytes
275f483
237d95e
275f483
 
237d95e
 
ef0581a
 
 
ac44367
21be174
1bc497b
ef0581a
275f483
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import random
# import lines go at the top, any libraries I need to import go above ^^

# def echo(message, history):
    # return message
# def yes_or_no(message, history):
    # return random.choice(['Yes', 'No'])
def magic_ball(message, history):
    return random.choice(['Yes', 'No', 'Try Again', 'Maybe', 'In The Future', 'Absolutely'])

print("Hello World!")
chatbot = gr.ChatInterface(magic_ball, type="messages")

chatbot.launch()