# Environment Variables for Business Card Data Extractor | |
# Copy this file to .env and replace with your actual values | |
# AI API Key (Required) | |
# Get your key from: https://aistudio.google.com/ | |
# For deployment: Add this as an environment variable named "Gemini_API" | |
Gemini_API=your_ai_api_key_here | |
# Google Drive API Credentials (Required - for file storage) | |
# Get these from Google Cloud Console: | |
# 1. Create a project at https://console.cloud.google.com/ | |
# 2. Enable Google Drive API | |
# 3. Create OAuth 2.0 credentials (Desktop application) | |
# 4. Download the JSON and extract client_id and client_secret | |
GOOGLE_CLIENT_ID=your_google_client_id_here | |
GOOGLE_CLIENT_SECRET=your_google_client_secret_here | |
# Google Drive Token (Required for deployment environments) | |
# Generate this by running the app locally first, then use convert_token_to_base64.py | |
# For local development: Leave this empty (token.pickle will be created automatically) | |
# For deployment: Set this to the base64 encoded token string | |
GOOGLE_TOKEN_BASE64=your_base64_encoded_token_here | |
# Hugging Face Space Password (Optional - for password protection) | |
# Set this to enable password protection when making your Space public | |
# Users will need to login with username: "user" and this password | |
# For deployment: Add this as a secret in your Space settings | |
HF_SPACE_PASSWORD=your_space_password_here | |
# Examples: | |
# Gemini_API=AIzaSyBxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
# GOOGLE_CLIENT_ID=1234567890-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com | |
# GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxxxxxxxxxxxxxx | |
# GOOGLE_TOKEN_BASE64=gASVxwAAAAAAAAB9cQAoWBYAAABhY2Nlc3NfdG9rZW4... (very long string) |