-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.yaml
More file actions
96 lines (84 loc) · 3.03 KB
/
config.yaml
File metadata and controls
96 lines (84 loc) · 3.03 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Listen address for webserver
listen: "127.0.0.1:8000"
# Database connection string (MYSQL)
database: "mysql://root:root@localhost:3366/route96"
# Directory to store uploads
storage_dir: "./data"
# Maximum support filesize for uploading
max_upload_bytes: 5e+9
# Public facing url
public_url: "http://localhost:8000"
# (Optional) Whitelist — controls who may upload files. Leave out to allow everyone.
#
# Database-backed (managed via admin UI):
# whitelist: true
#
# Inline static list of hex pubkeys:
# whitelist: ["63fe6318dc58583cfe16810f86dd09e18bfd76aabc24a0081ce2856f330504ed"]
#
# Hot-reloaded file (one hex pubkey per line, '#' comments allowed):
# whitelist: "./whitelist.txt"
# Directory where HuggingFace model files are cached.
# Defaults to <storage_dir>/models when not set.
# models_dir: "./data/models"
# Label models to run on every uploaded file.
# Each model downloads from HuggingFace into models_dir on first use.
# Multiple models can be listed; their results are merged.
label_models:
- type: vit
hf_repo: "google/vit-base-patch16-224"
name: "vit224"
- type: vit
hf_repo: "Falconsai/nsfw_image_detection"
name: "nsfw"
label_exclude:
- "normal"
- type: vit
hf_repo: "dima806/fairface_age_image_detection"
name: "age"
min_confidence: 0.3
# Example: Generic LLM API endpoint (OpenAI-compatible) for image classification
# - type: generic_llm
# api_url: "https://api.example.com/v1/chat/completions"
# model: "gpt-4o-mini"
# api_key: "your-api-key"
# prompt: "Focus on clothing items"
# name: "my-llm-labeler"
# label_exclude:
# - "unknown"
# min_confidence: 0.5
# Label terms that trigger automatic moderation flagging.
# Any file whose AI labels contain one of these substrings (case-insensitive)
# will have its review_state set to LabelFlagged.
label_flag_terms:
- "nsfw"
- "nipple"
- "brassiere"
# (Optional) Legacy file path for void.cat uploads
# void_cat_files: "/my/void.cat/data"
# (Optional) Reject image uploads containing sensitive EXIF metadata (GPS coordinates, device info)
# Default: false
# reject_sensitive_exif: true
# (Optional) Payment system config
# Remove this entire section to disable storage quotas and enable unlimited uploads
payments:
# (Optional) Free quota in bytes for users without payments (default: 100MB)
free_quota_bytes: 104857600
# (Optional) Fiat currency used to track exchange rate along with invoices
# If [cost] is using a fiat currency, exchange rates will always be stored
# in that currency, so this config is not needed
fiat: "USD"
# LND node config
lnd:
endpoint: "https://127.0.0.1:10001"
tls: "/home/kieran/.polar/networks/1/volumes/lnd/alice/tls.cert"
macaroon: "/home/kieran/.polar/networks/1/volumes/lnd/alice/data/chain/bitcoin/regtest/admin.macaroon"
# Cost per unit (BTC/USD/EUR/AUD/CAD/JPY/GBP)
cost:
currency: "BTC"
amount: 0.00000100
# Unit metric used to calculate quote (GBSpace, GBEgress)
unit: "GBSpace"
# Billing interval (day / month / year)
interval:
month: 1