File size: 2,521 Bytes
b81ee10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
77
78
79
80
81
82
83
================================================================================
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.

================================================================================