Spaces:
Running
Running
Commit
·
cd56c2e
1
Parent(s):
7596c77
Prepare for Hugging Face Spaces deployment
Browse files- .env.example +16 -0
- .spacesignore +23 -0
.env.example
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# API Configuration
|
| 2 |
+
HOST=0.0.0.0
|
| 3 |
+
PORT=7860
|
| 4 |
+
DEBUG=False
|
| 5 |
+
ENVIRONMENT=production
|
| 6 |
+
WORKERS=2
|
| 7 |
+
|
| 8 |
+
# Model Configuration
|
| 9 |
+
HF_TOKEN=your_huggingface_token_here
|
| 10 |
+
OFFLINE_MODE=False
|
| 11 |
+
|
| 12 |
+
# CORS
|
| 13 |
+
CORS_ORIGINS=*
|
| 14 |
+
|
| 15 |
+
# Logging
|
| 16 |
+
LOG_LEVEL=INFO
|
.spacesignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.pyc
|
| 3 |
+
*.pyo
|
| 4 |
+
*.pyd
|
| 5 |
+
.Python
|
| 6 |
+
*.so
|
| 7 |
+
*.egg
|
| 8 |
+
*.egg-info/
|
| 9 |
+
dist/
|
| 10 |
+
build/
|
| 11 |
+
.git/
|
| 12 |
+
.env
|
| 13 |
+
.venv
|
| 14 |
+
venv/
|
| 15 |
+
*.log
|
| 16 |
+
.DS_Store
|
| 17 |
+
.idea/
|
| 18 |
+
.vscode/
|
| 19 |
+
*.swp
|
| 20 |
+
*.swo
|
| 21 |
+
data/uploads/*
|
| 22 |
+
data/reports/*
|
| 23 |
+
logs/*
|