feat: complete dynamic JSON-driven photo tools frontend connected to FastAPI backend
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"schemaVersion": "1.0",
|
||||
"defaults": {
|
||||
"timeoutMs": 60000,
|
||||
"retries": 0,
|
||||
"maxUploadMB": 12,
|
||||
"allowedMime": ["image/jpeg", "image/png", "image/webp"],
|
||||
"rateLimit": "tryit-default",
|
||||
"response": {
|
||||
"kind": "binary-image",
|
||||
"delivery": "stream"
|
||||
}
|
||||
},
|
||||
"secrets": {
|
||||
"default": "env:API_SECRET_DEFAULT"
|
||||
},
|
||||
"rateLimits": {
|
||||
"tryit-default": {
|
||||
"perVisitorPerDay": 5,
|
||||
"perIpPerHour": 25,
|
||||
"dailyBudgetCalls": 5000
|
||||
}
|
||||
},
|
||||
"endpoints": {
|
||||
"api-blemish-remover": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"id": "image",
|
||||
"label": {
|
||||
"en": "Acne & Blemish Removal",
|
||||
"hi": "मुंहासे और दाग हटाएं"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "eye_fix",
|
||||
"label": {
|
||||
"en": "Eye Flaw & Iris Correction",
|
||||
"hi": "आंखों की स्पष्टता सुधारें"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "improver",
|
||||
"label": {
|
||||
"en": "Pore & Texture Smoothing",
|
||||
"hi": "त्वचा की बनावट चिकनी करें"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"ml-eye-redness-remover": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-teeth-whitener": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"id": "image",
|
||||
"label": {
|
||||
"en": "Targeted Teeth Whitening",
|
||||
"hi": "सटीक दांत सफेदी"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "image_full",
|
||||
"label": {
|
||||
"en": "Full Smile Brightening",
|
||||
"hi": "पूरी मुस्कान में चमक"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"api-eye-bag-remover": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-new-enhancer": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"id": "image",
|
||||
"label": {
|
||||
"en": "Ultra HD 2x Enhancement",
|
||||
"hi": "अल्ट्रा एचडी 2x सुधार"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "image_previous",
|
||||
"label": {
|
||||
"en": "Balanced Clarity",
|
||||
"hi": "संतुलित स्पष्टता"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"api-old-photo-restore": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-colorization": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-bg-remover-p3m": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-lama-cleaner": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-cartoon-avatar": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
},
|
||||
"api-polaroid-effect": {
|
||||
"enabled": true,
|
||||
"publicTry": true,
|
||||
"paramSources": {
|
||||
"image": "user.file",
|
||||
"secretKey": "secret"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user