File size: 1,825 Bytes
a9de5f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# CASL Directory Cleanup Plan

## βœ… KEEP (Deployment Ready)

### For Simple Deployment:
- `README.md` - HuggingFace Spaces config  
- `simple_casl.py` - Ultra-simple version (186 lines)
- `requirements.txt` - Dependencies

### For Full-Featured Deployment:
- `app.py` - Complete version (683 lines)
- `simple_app_fixed.py` - Alternative moderate version

### Reference:
- `aphasia_analysis_app_code.py` - Working Bedrock API reference

## πŸ—‘οΈ REMOVE (Redundant/Problematic)

### Large/Complex Files with Issues:
- `casl_analysis.py` (2493 lines) - S3 dependencies, errors
- `casl_analysis_improved.py` (1443 lines) - Compatibility issues  
- `copy_of_casl_analysis.py` (1490 lines) - Duplicate
- `simple_app.py` (1207 lines) - S3 dependencies, replaced

### Redundant Files:
- `requirements_improved.txt` - Use main requirements.txt instead

### Auto-Generated:
- `patient_data/` directory - Will be recreated automatically

## 🎯 FINAL DEPLOYMENT STRUCTURE

### Option 1: Ultra-Simple
```
/CASL/
β”œβ”€β”€ README.md (app_file: simple_casl.py)
β”œβ”€β”€ simple_casl.py
β”œβ”€β”€ requirements.txt
└── aphasia_analysis_app_code.py (reference)
```

### Option 2: Full-Featured  
```
/CASL/
β”œβ”€β”€ README.md (app_file: app.py)
β”œβ”€β”€ app.py  
β”œβ”€β”€ requirements.txt
└── aphasia_analysis_app_code.py (reference)
```

## πŸ“‹ CLEANUP COMMANDS

```bash
# Remove redundant files
rm casl_analysis.py
rm casl_analysis_improved.py  
rm copy_of_casl_analysis.py
rm simple_app.py
rm requirements_improved.txt

# Remove auto-generated data
rm -rf patient_data/

# Update README.md to point to chosen app file
```

## πŸš€ RECOMMENDATION

**Use Option 1 (Ultra-Simple)** for reliable deployment:
- Smallest codebase (186 lines)
- Fewest dependencies  
- Proven Bedrock API format
- Clean, focused functionality