File size: 237 Bytes
f84145b
a59aff4
71d100c
 
 
a59aff4
 
 
 
71d100c
8ff13c0
f84145b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)

chatbot.launch()