File size: 1,647 Bytes
29d41e1
 
 
87132f1
29d41e1
dae9b98
87132f1
29d41e1
dae9b98
 
 
 
 
 
 
 
6ba44e8
c609854
 
 
 
 
 
1e9afab
 
 
 
3b89417
1e9afab
6ba44e8
 
dae9b98
c609854
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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
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)