kwk_chatbot / app.py
vivianoh's picture
more parameters
4f0b9d0 verified
raw
history blame contribute delete
525 Bytes
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', 'Maybe', 'Ask Again'])
# def echo(message, history):
# return message
print("Hello World!")
chatbot = gr.ChatInterface(yes_or_no, type = "messages", title = "8-Ball", description = "Ask the 8-Ball a question!")
# defining my chatbot so that the user can interact and see their conversation history and send new messages
chatbot.launch()