File size: 694 Bytes
2e0b300
73bbf4a
03d35a4
7b62e16
 
 
469ea32
 
73bbf4a
03d35a4
469ea32
03d35a4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
import random

#def echo(message,history)
    #return message

def eightBall(message, history):
    responses = ["yes","withought a doubt","it is certain","it is decidedly so","yes definetly","most likely","outlook good","as I see it yes","signs point to yes","very doubtful","my reply is no","don't count on it","outlook not so good","better not tell you now","my sources say no","ask again later","reply hazy try again","concentrate and ask again","cannot predict now"]
    return random.choice(responses)

chatbot = gr.ChatInterface(eightBall, type = "messages", title = "answer bot", description = "this ChatBot answers any yes no question you ask it")

chatbot.launch()