Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def randomizer(message, history): | |
| responses = ['yes', 'no'] | |
| print('message:', message) | |
| print('history:', history) | |
| return random.choice(responses) | |
| chatbot = gr.ChatInterface(randomizer, type='messages') | |
| chatbot.launch() | |