Spaces:
Sleeping
Sleeping
File size: 556 Bytes
c61935a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import gradio as gr
import random
def magic_response(message, history):
answers = [
"Its def likely!",
"Idk bro",
"Yes, obviously",
"Try again later",
"Signs point to no",
"Sure, why not?",
"Literally yes",
"This is unclear"
]
return random.choice(answers)
chat_ui = gr.ChatInterface(
fn=magic_response,
title="🎱 Ask the Future",
description="Type any yes/no question and receive your fate!",
theme="default",
type="messages"
)
chat_ui.launch() |