practiceround2 / app.py
jasminemomoko's picture
Update app.py
9c81b6d verified
raw
history blame contribute delete
275 Bytes
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()