File size: 250 Bytes
c8eafee
c3e6035
0ceb441
c3e6035
 
 
 
 
0ceb441
c3e6035
1
2
3
4
5
6
7
8
9
10
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"

gr.ChatInterface(alternatingly_agree).launch()