Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ZamiSanj
/
therapx
like
0
Paused
App
Files
Files
Community
1
5916d6d
therapx
/
app.py
ZamiSanj
Update app.py
5916d6d
verified
6 months ago
raw
Copy download link
history
blame
Safe
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()