Spaces:
Sleeping
Sleeping
File size: 504 Bytes
ecc1e29 5ed571d 3d47cbb ecc1e29 5ed571d 3d47cbb 1fccfdc 5ed571d 3d47cbb ecc1e29 3d47cbb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
import random
# first, add your import lines
def yes_or_no(message, history):
responses = ["Yes", "No"]
return responses.choice(responses)
# def echo(message, history):
# return message
# Code the function that your chatbot will run!
print("Hello world")
chatbot = gr.ChatInterface(yes_or_no, type="messages")
# Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run
chatbot.launch()
# launches our chatbot
|