therapx / app.py
ZamiSanj's picture
Update app.py
5916d6d verified
raw
history blame
No virus
236 Bytes
import gradio as gr
def alternatingly_agree(message, history):
if len(history) % 2 == 0:
return f"Yes, I do think that '{message}'"
else:
return "I don't think so"
gr.ChatInterface(alternatingly_agree).launch()