File size: 502 Bytes
6f81933
8ddb1c1
6f81933
 
8ddb1c1
08ba2e0
c98fefb
8ddb1c1
 
 
 
41321f3
c98fefb
6f81933
 
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 yes_or_no(message, history):
    return random.choice(['Yes', 'No', 'Outlook not so good', 'It is likely'])
    
#def echo(message, history):
#    return message

print("Hello world!")
chatbot = gr.ChatInterface(yes_or_no, type= "messages", title= "Virtual 8 Ball")
#defining my chatbot so that the user can interact, see their conversation history, and send new messages

chatbot.launch()