Spaces:
Sleeping
Sleeping
| ================================================================================ | |
| HUGGINGFACE SPACES - QUICK START GUIDE | |
| ================================================================================ | |
| FIXED: Import errors resolved! App will not crash on missing files. | |
| ================================================================================ | |
| STEP 1: CREATE SPACE | |
| ================================================================================ | |
| Go to: https://huggingface.co/new-space | |
| Settings: | |
| SDK: Gradio | |
| Hardware: GPU (T4) β IMPORTANT! | |
| ================================================================================ | |
| STEP 2: UPLOAD THESE FILES | |
| ================================================================================ | |
| REQUIRED (9 files minimum): | |
| [β] app.py | |
| [β] llm.py | |
| [β] extractors.py | |
| [β] tagging.py | |
| [β] chunking.py | |
| [β] validation.py | |
| [β] reporting.py | |
| [β] dashboard.py | |
| [β] requirements.txt | |
| OPTIONAL (recommended): | |
| [ ] production_logger.py | |
| [ ] quote_extractor.py | |
| ================================================================================ | |
| STEP 3: WAIT FOR BUILD | |
| ================================================================================ | |
| First time: ~5-10 minutes | |
| - Installing dependencies | |
| - Downloading Phi-3-mini model | |
| Watch "Logs" tab for: | |
| β Model loaded on cuda:0 | |
| β Running on local URL | |
| ================================================================================ | |
| STEP 4: TEST | |
| ================================================================================ | |
| 1. Upload a transcript (DOCX or PDF) | |
| 2. Select "HCP" interviewee type | |
| 3. Click "Analyze Transcripts" | |
| 4. Wait ~5-10 minutes | |
| Expected: Quality Score 0.7-1.0 (not 0.00!) | |
| ================================================================================ | |
| TROUBLESHOOTING | |
| ================================================================================ | |
| Still getting ModuleNotFoundError? | |
| β Make sure you uploaded the UPDATED app.py | |
| Very slow processing? | |
| β Check Hardware is set to GPU (not CPU) | |
| Quality Score 0.00? | |
| β Settings β Variables β Add DEBUG_MODE=True | |
| β Check logs for error messages | |
| ================================================================================ | |
| YOU'RE READY! | |
| ================================================================================ | |
| Just upload the 9-11 files and it works. | |
| No .env needed. No terminal commands needed. | |
| ================================================================================ | |