File size: 369 Bytes
eeed234
7b065dd
 
b818c1a
 
eeed234
7b065dd
 
 
 
 
 
 
69398bb
b818c1a
eeed234
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr 
import random


def echo(message, history):
    return(message)

def yes_no(message, history):
    responses = ["Yes", "No"]
    return random.choice(responses)

print("Hello, World!")

chatbot = gr.ChatInterface(yes_no, type = "messages", title="My Chatbot", description = "a chatbot that states its opinions.", theme="citrus")

chatbot.launch()