File size: 251 Bytes
f10d74e
bae4695
f10d74e
bae4695
 
 
f10d74e
bae4695
f10d74e
a5a6611
1
2
3
4
5
6
7
8
9
10
import gradio as gr
import random #this is the library we need

def respond_yes_no_randomly(message, chat_log):
    responses = ["yes","no"]
    return random.choice(responses)
    
chatbot = gr.ChatInterface(respond_yes_no_randomly)

chatbot.launch()