Spaces:
Sleeping
Sleeping
import random | |
import gradio as gr | |
def magicEight(message, history): | |
answers = ["The outlook is good!", "No, sorry", "Maybe", "Ask me again"] | |
response = random.choice(answers) | |
return response | |
chatbot = gr.ChatInterface( | |
magicEight, | |
type="messages", | |
examples=None, | |
title="Magic Eight Ball", | |
description="Welcome! 🎱 Ask the Magic Eight Ball your question!" | |
) | |
chatbot.launch() | |