TranscriptWriting / QUICK_START.txt
jmisak's picture
Upload 5 files
b81ee10 verified
raw
history blame
2.52 kB
================================================================================
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.
================================================================================