File size: 1,785 Bytes
4c59e23
c3dd14e
 
 
 
4c59e23
c3dd14e
 
4c59e23
 
 
 
 
 
c3dd14e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: Attachment Style Roleplay Simulator
emoji: 🎭
colorFrom: purple
colorTo: pink
sdk: streamlit
sdk_version: 1.45.0
app_file: src/app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

This Streamlit app provides an anonymous chat interface powered by OpenAI's gpt-4o model, designed as a 'digital companion' called ShadowBox.

# Attachment Style Roleplay Simulator

A therapeutic roleplay simulator built for practicing emotionally charged conversations, created by Jocelyn Skillman LMHC.

## About

This tool helps users rehearse boundary-setting and difficult conversations by simulating realistic relational dynamics—tailored to their attachment style. It provides a safe space to practice emotional communication and receive feedback on patterns and progress.

## Features

- Customizable scenarios and conversation goals
- Attachment style-specific responses
- Realistic relational pressure simulation
- Reflection summaries and pattern tracking
- Safe, contained practice environment

## Setup

1. Clone the repository
2. Install dependencies: `pip install -r requirements.txt`
3. Set up environment variables in `.env`:
   ```
   ANTHROPIC_KEY=your_api_key_here
   ```
4. Run the app: `streamlit run src/app.py`

## Deployment

This app is deployed on Hugging Face Spaces. To deploy your own instance:

1. Fork this repository
2. Create a new Space on Hugging Face
3. Set the ANTHROPIC_KEY in your Space's secrets (Important: use this exact name)
4. Select Streamlit as the SDK
5. Link your repository to the Space

## Learn More

Visit [jocelynskillman.com](http://www.jocelynskillman.com) or subscribe to updates at [jocelynskillmanlmhc.substack.com](https://jocelynskillmanlmhc.substack.com/)