Spaces:
Sleeping
Sleeping
Update .env
Browse files
.env
CHANGED
|
@@ -1,57 +1,57 @@
|
|
| 1 |
-
# PDF OCR Service Environment Configuration
|
| 2 |
-
|
| 3 |
-
# ======================
|
| 4 |
-
# Azure Document Intelligence Configuration
|
| 5 |
-
# ======================
|
| 6 |
-
# Get these from Azure Portal > Document Intelligence resource
|
| 7 |
-
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=
|
| 8 |
-
AZURE_DOCUMENT_INTELLIGENCE_KEY=
|
| 9 |
-
|
| 10 |
-
# ======================
|
| 11 |
-
# Server Configuration
|
| 12 |
-
# ======================
|
| 13 |
-
# Gradio server settings
|
| 14 |
-
SERVER_HOST=127.0.0.1
|
| 15 |
-
SERVER_PORT=7860
|
| 16 |
-
SHARE_GRADIO=false
|
| 17 |
-
|
| 18 |
-
# ======================
|
| 19 |
-
# File Processing Limits
|
| 20 |
-
# ======================
|
| 21 |
-
# Maximum file size in MB
|
| 22 |
-
MAX_FILE_SIZE_MB=50
|
| 23 |
-
|
| 24 |
-
# Maximum number of history entries to keep
|
| 25 |
-
MAX_HISTORY_SIZE=100
|
| 26 |
-
|
| 27 |
-
# ======================
|
| 28 |
-
# Logging Configuration
|
| 29 |
-
# ======================
|
| 30 |
-
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
| 31 |
-
LOG_LEVEL=INFO
|
| 32 |
-
|
| 33 |
-
# ======================
|
| 34 |
-
# Instructions for Setup
|
| 35 |
-
# ======================
|
| 36 |
-
# 1. Copy this file and rename it to .env (remove .example)
|
| 37 |
-
# 2. Fill in your Azure Document Intelligence credentials above
|
| 38 |
-
# 3. Adjust other settings as needed for your environment
|
| 39 |
-
# 4. Never commit the .env file to version control
|
| 40 |
-
# 5. Add .env to your .gitignore file
|
| 41 |
-
|
| 42 |
-
# ======================
|
| 43 |
-
# How to get Azure credentials:
|
| 44 |
-
# ======================
|
| 45 |
-
# 1. Go to Azure Portal (portal.azure.com)
|
| 46 |
-
# 2. Create a new "Document Intelligence" resource
|
| 47 |
-
# 3. Choose a subscription, resource group, and region
|
| 48 |
-
# 4. Select pricing tier (F0 for free tier, S0 for standard)
|
| 49 |
-
# 5. After creation, go to "Keys and Endpoint" section
|
| 50 |
-
# 6. Copy the endpoint URL and one of the keys
|
| 51 |
-
# 7. Replace the values above with your actual credentials
|
| 52 |
-
|
| 53 |
-
# ======================
|
| 54 |
-
# Example values:
|
| 55 |
-
# ======================
|
| 56 |
-
# AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=https://myservice.cognitiveservices.azure.com/
|
| 57 |
# AZURE_DOCUMENT_INTELLIGENCE_KEY=1234567890abcdef1234567890abcdef
|
|
|
|
| 1 |
+
# PDF OCR Service Environment Configuration
|
| 2 |
+
|
| 3 |
+
# ======================
|
| 4 |
+
# Azure Document Intelligence Configuration
|
| 5 |
+
# ======================
|
| 6 |
+
# Get these from Azure Portal > Document Intelligence resource
|
| 7 |
+
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=xxx
|
| 8 |
+
AZURE_DOCUMENT_INTELLIGENCE_KEY=xxx
|
| 9 |
+
|
| 10 |
+
# ======================
|
| 11 |
+
# Server Configuration
|
| 12 |
+
# ======================
|
| 13 |
+
# Gradio server settings
|
| 14 |
+
SERVER_HOST=127.0.0.1
|
| 15 |
+
SERVER_PORT=7860
|
| 16 |
+
SHARE_GRADIO=false
|
| 17 |
+
|
| 18 |
+
# ======================
|
| 19 |
+
# File Processing Limits
|
| 20 |
+
# ======================
|
| 21 |
+
# Maximum file size in MB
|
| 22 |
+
MAX_FILE_SIZE_MB=50
|
| 23 |
+
|
| 24 |
+
# Maximum number of history entries to keep
|
| 25 |
+
MAX_HISTORY_SIZE=100
|
| 26 |
+
|
| 27 |
+
# ======================
|
| 28 |
+
# Logging Configuration
|
| 29 |
+
# ======================
|
| 30 |
+
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
| 31 |
+
LOG_LEVEL=INFO
|
| 32 |
+
|
| 33 |
+
# ======================
|
| 34 |
+
# Instructions for Setup
|
| 35 |
+
# ======================
|
| 36 |
+
# 1. Copy this file and rename it to .env (remove .example)
|
| 37 |
+
# 2. Fill in your Azure Document Intelligence credentials above
|
| 38 |
+
# 3. Adjust other settings as needed for your environment
|
| 39 |
+
# 4. Never commit the .env file to version control
|
| 40 |
+
# 5. Add .env to your .gitignore file
|
| 41 |
+
|
| 42 |
+
# ======================
|
| 43 |
+
# How to get Azure credentials:
|
| 44 |
+
# ======================
|
| 45 |
+
# 1. Go to Azure Portal (portal.azure.com)
|
| 46 |
+
# 2. Create a new "Document Intelligence" resource
|
| 47 |
+
# 3. Choose a subscription, resource group, and region
|
| 48 |
+
# 4. Select pricing tier (F0 for free tier, S0 for standard)
|
| 49 |
+
# 5. After creation, go to "Keys and Endpoint" section
|
| 50 |
+
# 6. Copy the endpoint URL and one of the keys
|
| 51 |
+
# 7. Replace the values above with your actual credentials
|
| 52 |
+
|
| 53 |
+
# ======================
|
| 54 |
+
# Example values:
|
| 55 |
+
# ======================
|
| 56 |
+
# AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=https://myservice.cognitiveservices.azure.com/
|
| 57 |
# AZURE_DOCUMENT_INTELLIGENCE_KEY=1234567890abcdef1234567890abcdef
|