Spaces:
Sleeping
Sleeping
File size: 687 Bytes
c744265 9f5f8f8 51f5182 c744265 1f9d5e8 9f5f8f8 51f5182 9f5f8f8 65f0481 c744265 1cd7db7 51f5182 c744265 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
import random
#import lines go at the top!
def magic_ball(message, history):
return random.choice(['Try again!','Maybe','Without a doubt'])
#def yes_or_no(message,history):
#return random.choice(['Yes','No'])
#def echo(message, history):
#always need two inputs
#return message
print("Hello, World")
chatbot = gr.ChatInterface(magic_ball,
title = 'The Psychic Magic 8 Ball',
description = 'Ask any yes or no question to learn your future',
type='messages')
#defining my chatbot so user can interact, see their conversation and send new messages
chatbot.launch() |