PythonCode / app.py
c4r-sty's picture
Fix error + new changes
6eed5fe verified
Raw History Blame
279 Bytes
import gradio as gr
import random
def chance(message, history):
response_options = ["yes", "no", "maybe", "potentially", "your future is blurred"]
return random.choice(response_options)
chatbot = gr.ChatInterface(chance, title = "Magic 8-Ball Chatbot")
chatbot.launch()