youssefreda9 commited on
Commit
7c3e375
·
1 Parent(s): 7c2a891

Cleanup pass 2: Fix .gitignore corruption, archive docs/audit + phase10 helpers, fix PROJECT_DESCRIPTION.md

Browse files
Files changed (26) hide show
  1. .gitignore +0 -0
  2. PROJECT_DESCRIPTION.md +8 -4
  3. {tests/phase10 → archive/old_tests/phase10_helpers}/audit_output.txt +0 -0
  4. {tests/phase10 → archive/old_tests/phase10_helpers}/audit_script.py +0 -0
  5. archive/old_tests/phase10_helpers/extract_entity_results.py +16 -0
  6. {tests/phase10 → archive/old_tests/phase10_helpers}/fetch_hf_logs.py +0 -0
  7. {tests/phase10 → archive/old_tests/phase10_helpers}/generate_audit_md.py +0 -0
  8. {tests/phase10 → archive/old_tests/phase10_helpers}/generate_collision_dataset.py +0 -0
  9. {tests/phase10 → archive/old_tests/phase10_helpers}/generate_regression_audit.py +0 -0
  10. {tests/phase10 → archive/old_tests/phase10_helpers}/show_samples.py +0 -0
  11. {docs/audit → archive/phase_reports/audits}/analyze-stress-test.md +0 -0
  12. {docs/audit → archive/phase_reports/audits}/api-contract-audit.md +0 -0
  13. {docs/audit → archive/phase_reports/audits}/architecture-consistency-audit.md +0 -0
  14. {docs/audit → archive/phase_reports/audits}/frontend-robustness-report.md +0 -0
  15. {docs/audit → archive/phase_reports/audits}/hardening-final-report.md +0 -0
  16. {docs/audit → archive/phase_reports/audits}/log_analysis.md +0 -0
  17. {docs/audit → archive/phase_reports/audits}/model-performance-report.md +0 -0
  18. {docs/audit → archive/phase_reports/audits}/nlp-performance-breakdown.md +0 -0
  19. {docs/audit → archive/phase_reports/audits}/overlap-resolution-report.md +0 -0
  20. {docs/audit → archive/phase_reports/audits}/phase-o-final-hardening.md +0 -0
  21. {docs → archive/phase_reports}/audits/production-readiness-report.md +0 -0
  22. {docs/audit → archive/phase_reports/audits}/security-audit.md +0 -0
  23. {docs/audit → archive/phase_reports/audits}/suggestion-priority-audit.md +0 -0
  24. {docs/audit → archive/phase_reports/audits}/text-processing-strategy.md +0 -0
  25. tests/v2/reports/level1_raw_results.json +0 -0
  26. tests/v2/reports/level2_solo_results.json +0 -0
.gitignore CHANGED
Binary files a/.gitignore and b/.gitignore differ
 
PROJECT_DESCRIPTION.md CHANGED
@@ -203,11 +203,15 @@ Verify that you have placed the model files under the `models/` directory:
203
  - Punctuation: `models/Punctuation/Model/`
204
 
205
  ### 3. Run the Server
206
- Use the standard run script:
207
  ```bash
208
- python run_app.py
 
 
 
 
209
  ```
210
- This runs the server locally on port `5000` by default. Open your web browser and navigate to:
211
  ```
212
- http://localhost:5000
213
  ```
 
203
  - Punctuation: `models/Punctuation/Model/`
204
 
205
  ### 3. Run the Server
206
+ Use gunicorn (production) or Flask dev server:
207
  ```bash
208
+ # Production (matches Procfile)
209
+ cd src && gunicorn app:app --bind 0.0.0.0:7860 --timeout 120 --workers 1
210
+
211
+ # Development
212
+ cd src && python -c "from app import app; app.run(host='0.0.0.0', port=7860, debug=True)"
213
  ```
214
+ Open your web browser and navigate to:
215
  ```
216
+ http://localhost:7860
217
  ```
{tests/phase10 → archive/old_tests/phase10_helpers}/audit_output.txt RENAMED
File without changes
{tests/phase10 → archive/old_tests/phase10_helpers}/audit_script.py RENAMED
File without changes
archive/old_tests/phase10_helpers/extract_entity_results.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+
3
+ d = json.load(open('tests/phase10/reports/phase10_results.json', 'r', encoding='utf-8'))
4
+ for r in d['results']:
5
+ if r['id'].startswith('E'):
6
+ v = r.get('pipeline_verdict', '?')
7
+ inp = r.get('input', '')[:60]
8
+ out = r.get('pipeline_output', '')[:60]
9
+ det = r.get('pipeline_detail', '')[:60]
10
+ cat = r.get('category', '')
11
+ print(f"{r['id']} [{v:3}] cat={cat}")
12
+ print(f" IN: {inp}")
13
+ print(f" OUT: {out}")
14
+ if det:
15
+ print(f" DET: {det}")
16
+ print()
{tests/phase10 → archive/old_tests/phase10_helpers}/fetch_hf_logs.py RENAMED
File without changes
{tests/phase10 → archive/old_tests/phase10_helpers}/generate_audit_md.py RENAMED
File without changes
{tests/phase10 → archive/old_tests/phase10_helpers}/generate_collision_dataset.py RENAMED
File without changes
{tests/phase10 → archive/old_tests/phase10_helpers}/generate_regression_audit.py RENAMED
File without changes
{tests/phase10 → archive/old_tests/phase10_helpers}/show_samples.py RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/analyze-stress-test.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/api-contract-audit.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/architecture-consistency-audit.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/frontend-robustness-report.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/hardening-final-report.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/log_analysis.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/model-performance-report.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/nlp-performance-breakdown.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/overlap-resolution-report.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/phase-o-final-hardening.md RENAMED
File without changes
{docs → archive/phase_reports}/audits/production-readiness-report.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/security-audit.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/suggestion-priority-audit.md RENAMED
File without changes
{docs/audit → archive/phase_reports/audits}/text-processing-strategy.md RENAMED
File without changes
tests/v2/reports/level1_raw_results.json CHANGED
The diff for this file is too large to render. See raw diff
 
tests/v2/reports/level2_solo_results.json CHANGED
The diff for this file is too large to render. See raw diff