arithescientist's picture
Upload README.md
8ae5673 verified
metadata
title: Statistical Impact Analyzer
emoji: πŸ“Š
colorFrom: blue
colorTo: green
sdk: docker
pinned: false

Statistical Impact Analyzer β€” Hugging Face Space (Docker)

This app is a Gradio UI for EDA, causal inference, and predictive modeling.

Deploying on Hugging Face Spaces

Runtime: Select "Docker" when creating the Space.

Files included:

  • Dockerfile β€” builds a Python 3.11 slim image and runs python app.py
  • requirements.txt β€” Python dependencies
  • app.py β€” Gradio app (binds to 0.0.0.0 and $PORT automatically)

Secrets

This Space uses the OpenAI API for the Executive Summary. Add your secret in the Space settings:

  • Name: OPENAI_API_KEY
  • Value: your OpenAI API key

The app reads the key from the environment automatically. If a key is not set, the Executive Summary will simply be empty; the rest of the app will work.

Local development

pip install -r requirements.txt
python app.py

Notes

  • The app binds to 0.0.0.0 and uses $PORT if provided (HF Spaces). Default is 7860 locally.
  • For large CSV/XLSX files, ensure memory is sufficient on the Space instance.