CoolFace
Apppublic

kevin-e-work/dental-insurance

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

Configuration

The app loads coverage data from remote URLs. The coverage files (CoverageResults.json and CoverageResultsLegacy.json) are not stored in this repository - they are loaded from the configured URLs.

Configuration Variables

The following variables can be configured:

  • —coverage_file_url - URL for the main coverage results file (CoverageResults.json)
  • —coverage_legacy_file_url - URL for the legacy format coverage results file (CoverageResultsLegacy.json) (optional)
  • —bearer_token - Bearer token for API authentication (required for Jobs screen)
  • —api_base_url - Base URL for the API endpoint (defaults to http://localhost:3000/v1.1 for dev)

For Local Development

  1. 1.Copy the example config file:
bash
   cp config.json.example config.json
  1. 1.Edit config.json and add your configuration:
json
   {
     "coverage_file_url": "https://your-coverage-file-url-here.json",
     "coverage_legacy_file_url": "https://your-legacy-coverage-file-url-here.json",
     "bearer_token": "your-bearer-token-here",
     "api_base_url": "http://localhost:3000/v1.1"
   }

Note: For local development, api_base_url defaults to http://localhost:3000/v1.1 if not specified.

For Production Deployment

  1. 1.Go to your deployment platform settings (e.g., Hugging Face Spaces)
  2. 2.Navigate to "Variables and secrets"
  3. 3.Add the following environment variables:
  4. 4.COVERAGE_FILE_URL - URL for the main coverage results file
  5. 5.COVERAGE_LEGACY_FILE_URL - URL for the legacy format coverage results file (optional)
  6. 6.BEARER_TOKEN - Bearer token for API authentication
  7. 7.API_BASE_URL - Base URL for the API (e.g., https://api.emmarobot.io/v1.1 for production)

Note:

  • —Environment variables take precedence over config.json if both are set
  • —The legacy file URL is optional - the app will work with just the main coverage file URL
  • —For production, set API_BASE_URL to https://api.emmarobot.io/v1.1
  • —For development, API_BASE_URL defaults to http://localhost:3000/v1.1 if not set

Running Locally

Install dependencies:

bash
pip install -r requirements.txt

Set up your configuration (see above), then run the app:

bash
streamlit run app.py

The app will open in your browser at http://localhost:8501.


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference