File size: 619 Bytes
7101de7
860da6d
7101de7
 
ac6d2f6
 
 
860da6d
e804bfe
860da6d
 
b6ae7a5
d3c5c7a
860da6d
7101de7
 
b6ae7a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
import random 
# import lines go at the top! Any libraries I need to import go up here^^

title: I am the your bestie | I18nData | None
description: "I will serve you" | None

def yes_or_no(message, history):
    return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ])
# def echo(message, history):
    # return message

print("Hello World")
chatbot = gr.ChatInterface(yes_or_no, type = "messages")
# defining my chatbot so that the user can interact and see their conversation history and send new messages

chatbot.launch()