Spaces:
Sleeping
Sleeping
| 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 | |