File size: 508 Bytes
d0bf379
bd7378f
d0bf379
 
99ae439
d0bf379
 
29778c6
bd7378f
2c41dc6
bd7378f
 
 
 
 
24cdfd9
d0bf379
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
import random

# Chat function: Respond with what we said 
def echo(message, history):
    return message 


def yes_no(message, history):
    responses = ['Yes', 'No', 'Oh I dont think so', 'Affirmative', 'All signs point to yes', 'Maybe', 'Negative']
    return random.choice(responses)


# print('Hello World')

chatbot = gr.ChatInterface(yes_no, type='messages', title= "Totoro's ChatBot", description= "This is Totoro approved >.<", theme= 'Taithrah/Minimal')
    
chatbot.launch()