File size: 279 Bytes
3f55a9c
44d3cb2
3f55a9c
44d3cb2
6eed5fe
44d3cb2
3f55a9c
6eed5fe
3f55a9c
1
2
3
4
5
6
7
8
9
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()