Spaces:
Sleeping

File size: 1,650 Bytes
765c205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
42
43
44
45
# Environment variables for AikoDiary Backend
# Copy this file to .env and fill in your values
# For Hugging Face Spaces, add these as Secrets in the Space settings

# ============================================================================
# REQUIRED
# ============================================================================

# Gemini API Key (Required for AI chat functionality)
GEMINI_API_KEY=your_gemini_api_key_here

# ============================================================================
# GOOGLE CLOUD SPEECH-TO-TEXT (Choose ONE method)
# ============================================================================

# METHOD 1: JSON Content (Recommended for Hugging Face)
# Paste the ENTIRE content of your gcp_key.json file as the value
# Example: GCP_CREDENTIALS_JSON={"type":"service_account","project_id":"..."}
GCP_CREDENTIALS_JSON=

# METHOD 2: File Path (For local development)
# Path to your GCP service account JSON file
GCP_SERVICE_ACCOUNT_FILE=gcp_key.json

# Speech recognition language
SPEECH_LANGUAGE_CODE=en-US

# ============================================================================
# SERVER CONFIGURATION
# ============================================================================

# Server port (7860 for Hugging Face, 5000 for local)
SERVER_PORT=7860
SERVER_IP=0.0.0.0

# ============================================================================
# DATABASE (Optional - currently handled by PHP backend)
# ============================================================================

ENABLE_FLASK_DB=false
DB_HOST=localhost
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_NAME=your_db_name