Spaces:
Sleeping
Sleeping
Download .env.example from team-dialect-map/dialect-map: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/spaces/team-dialect-map/dialect-map/resolve/main/.env.example
- Command line
-
hf download hf://spaces/team-dialect-map/dialect-map/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/team-dialect-map/dialect-map/resolve/main/.env.example
1.34 kB
| # Hugging Face Spaces Environment Variables | |
| # Copy this file to .env for local testing | |
| # On HF Spaces, set these as Space secrets | |
| # Full JSON content of config.json (paste the entire JSON as one line or use multiline) | |
| HF_CONFIG_JSON='{"google_sheets":{"enabled":true,"sync_interval_minutes":5,"credentials_file":"credentials.json","spreadsheets":[{"id":"YOUR_SPREADSHEET_ID_1","sheet_name":"processed_dialects","output_file":"sheets_output/processed_dialects.csv"},{"id":"YOUR_SPREADSHEET_ID_2","sheet_name":"digiwords_grouped","output_file":"sheets_output/digiwords_grouped.csv"}]},"file_watcher":{"enabled":true,"watch_directory":"sheets_output","file_patterns":["*.csv"]},"output":{"json_directory":"data/processed"}}' | |
| # Full JSON content of credentials.json (paste the entire service account JSON) | |
| HF_CREDENTIALS_JSON='{"type":"service_account","project_id":"your-project","private_key_id":"...","private_key":"-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n","client_email":"...@...iam.gserviceaccount.com","client_id":"...","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url":"..."}' | |
| # Optional: Port for local development (HF Spaces uses 7860 by default) | |
| PORT=7860 | |