Views
No views yet
SGJobData.csv and produce short-term and 5-year projections of average salary trends.compute_summary.py — processes the CSV in chunks and writes summary.json with dataset summary and monthly salary series.app.py — Gradio app that shows dataset overview and runs a 5-year linear projection of average salary.requirements.txt — Python dependencies.1python -m venv .venv
2source .venv/bin/activate
3pip install -r requirements.txtpython compute_summary.pypython app.pySGJobData.csv, app.py, and requirements.txt.app.py as the app entrypoint (default for Gradio Spaces).app.py fits a linear trend to the monthly historical mean average salary and extrapolates forward. This is intentionally simple — see compute_summary.py for monthly series creation. For production use, consider more robust time-series models (ARIMA, Prophet, or ML-based models) and per-occupation projections.app.py — Gradio entrypoint (required by the Space to run the app).requirements.txt — Python packages to install on the Space.README.md — usage and notes (this file).SGJobData.csv.gz — compressed dataset (preferred over the raw CSV). app.py and compute_summary.py will detect and use the .gz automatically.summary.json — precomputed summary to avoid a long startup processing step.compute_summary.py — script used to create summary.json (useful for reproducibility).projection_engine.py — forecasting code used by the app.occupation_mapping.py — helper to map title → occupation categories.projection_snapshot.png — static preview image for the repo (optional)..gz file:SGJobData.csv.gz dramatically reduces upload size and startup processing time. The app is already coded to prefer the gz file if present.CPU (the app runs fine on CPU); choose GPU only if you add heavy ML models.app.py and requirements.txt.app.py (Gradio). If you need a custom start command, set it in the Space settings.space settings example (informational — not required as a file):1# Example: suggested Space settings (informational)
2sdk: gradio
3python_version: 3.10
4hardware: cpu # or gpu if needed
5visibility: publicSGJobData.csv.gz is large (tens of MBs to GBs), check Space storage limits and upload time; consider external hosting (S3/GDrive) and modify app.py to download at first run instead.summary.json avoids recomputing the whole CSV on first start — helpful if the Space should start quickly.app.py to download the compressed CSV from an external URL at startup, or.zip or upload-ready bundle for you to push to Hugging Face.