Spaces:
Running
Running
File size: 2,498 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 74 75 76 |
# π£οΈ CASL Analysis Tool - App Options
## π Main Applications (Choose One for Deployment)
### 1. **`simple_casl_app.py`** β RECOMMENDED
- **Lines**: 186
- **Features**: File upload β LLM analysis β Results display
- **Best for**: Quick deployment, reliable functionality
- **Dependencies**: Minimal (gradio, boto3)
- **Complexity**: β Simple
### 2. **`moderate_casl_app.py`**
- **Lines**: 760
- **Features**: Analysis + Audio transcription + PDF export
- **Best for**: Balanced features without complexity
- **Dependencies**: Moderate (+ speech_recognition, reportlab)
- **Complexity**: ββ Moderate
### 3. **`full_casl_app.py`**
- **Lines**: 683
- **Features**: Complete interface + visualizations + records
- **Best for**: Full-featured deployment
- **Dependencies**: Full set (+ matplotlib, numpy, pandas)
- **Complexity**: βββ Advanced
### 4. **`experimental_casl_app.py`**
- **Lines**: 1443
- **Features**: Enhanced analytics + patient database + advanced visualizations
- **Best for**: Research/experimental features
- **Dependencies**: Extended (+ seaborn, typing)
- **Complexity**: ββββ Experimental
## π Reference Files
### **`aphasia_analysis_app_code.py`**
- **Purpose**: Reference implementation with working Bedrock API calls
- **Contains**: Correct model format, API structure
- **Use**: Copy Bedrock call patterns from this file
## ποΈ Reference Files (Archived)
Located in `/reference_files/` folder:
- Original implementations and variations
- Legacy code for reference
- Alternative approaches
## π Quick Start
### For HuggingFace Spaces:
1. **Choose your app** (recommend `simple_casl_app.py`)
2. **Update README.md**:
```yaml
app_file: simple_casl_app.py
```
3. **Deploy** with `requirements.txt`
### Local Testing:
```bash
python simple_casl_app.py # Simplest
python moderate_casl_app.py # Balanced
python full_casl_app.py # Complete
python experimental_casl_app.py # Advanced
```
## π― Deployment Recommendations
| Use Case | Recommended App | Why |
|----------|----------------|-----|
| **Quick Demo** | `simple_casl_app.py` | Fast, reliable, minimal dependencies |
| **Production** | `moderate_casl_app.py` | Good features, stable |
| **Research** | `full_casl_app.py` | Complete functionality |
| **Development** | `experimental_casl_app.py` | Latest features |
## π Current README.md Configuration
- Currently points to: `app.py` (needs update)
- Should point to your chosen app file |