Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def random_message (message, history): | |
| choices = ('yes','no','i dont think so,'be so for real','yep', 'woooow', 'hmmmm', 'idk', 'idc', 'yaaay', 'why would i know') | |
| wow = random.choice(choices) | |
| return wow | |
| chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatty") | |
| chatbot.launch() | |
| # repeats messages. | |