File size: 368 Bytes
321115f
4aac9c9
 
321115f
 
4aac9c9
 
 
 
 
8fbbd9a
4aac9c9
ca07a73
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 yes_no(message, history):
    responses = ["Yes", "No"]
    return random.choice(responses)

chatbot = gr.ChatInterface(yes_no, type = "messages", title="The best chat bot", description="Ask it Yes or No questions", theme='shivi/calm_seafoam')
chatbot.launch()
background.launch()