File size: 548 Bytes
9726020
226758e
9726020
 
af2ecb3
 
226758e
 
 
 
557cbf0
0f35556
9726020
 
e0a5c06
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 up here ^^

def magic_8_ball (message, history):
    return random.choice(["Don't count on it","Yes of course","Ask again later","My reply is no","Without a doubt","Cannot predict now"])

# def echo(message,history):
   # return message
    
print("Hello, world!")
chatbot = gr.ChatInterface(magic_8_ball, type="messages")
# defining my chatbot so that the user can interact and see their conversation history and send new messages 

chatbot.launch()