import random 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" placeholder = """ CodeGemma-7B-IT """ gr.ChatInterface(alternatingly_agree, placeholder=placeholder).launch()