feat: make tryIt presets, limits, badges and buttons completely dynamic from JSON configs
This commit is contained in:
+86
-11
@@ -3,7 +3,11 @@
|
||||
"title": "Portrait_Retouching",
|
||||
"api_key": "Portrait_Retouching",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/portrait/",
|
||||
"chips": ["portrait", "face", "beauty"],
|
||||
"chips": [
|
||||
"portrait",
|
||||
"face",
|
||||
"beauty"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-blemish-remover",
|
||||
@@ -35,9 +39,21 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Primary acne and blemish removal", "m": "POST", "p": "/blemish_remover/image/" },
|
||||
{ "d": "Eye defect, iris clarity, and sclera correction", "m": "POST", "p": "/blemish_remover/eye_fix/" },
|
||||
{ "d": "Full skin texture smoothening and pore tone balancing", "m": "POST", "p": "/blemish_remover/improver/" }
|
||||
{
|
||||
"d": "Primary acne and blemish removal",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/image/"
|
||||
},
|
||||
{
|
||||
"d": "Eye defect, iris clarity, and sclera correction",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/eye_fix/"
|
||||
},
|
||||
{
|
||||
"d": "Full skin texture smoothening and pore tone balancing",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/improver/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -101,8 +117,16 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Targeted teeth whitening", "m": "POST", "p": "/teeth_whitener/image/" },
|
||||
{ "d": "Full face smile brightening", "m": "POST", "p": "/teeth_whitener/image_full/" }
|
||||
{
|
||||
"d": "Targeted teeth whitening",
|
||||
"m": "POST",
|
||||
"p": "/teeth_whitener/image/"
|
||||
},
|
||||
{
|
||||
"d": "Full face smile brightening",
|
||||
"m": "POST",
|
||||
"p": "/teeth_whitener/image_full/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -142,7 +166,11 @@
|
||||
"title": "Restoration_And_Enhancement",
|
||||
"api_key": "Restoration_And_Enhancement",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/restoration/",
|
||||
"chips": ["restore", "enhance", "color"],
|
||||
"chips": [
|
||||
"restore",
|
||||
"enhance",
|
||||
"color"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-new-enhancer",
|
||||
@@ -174,8 +202,16 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Standard 2x Clarity Enhancement", "m": "POST", "p": "/new_enhancer/image/" },
|
||||
{ "d": "Legacy Balanced Enhancement", "m": "POST", "p": "/new_enhancer/image_previous/" }
|
||||
{
|
||||
"d": "Standard 2x Clarity Enhancement",
|
||||
"m": "POST",
|
||||
"p": "/new_enhancer/image/"
|
||||
},
|
||||
{
|
||||
"d": "Legacy Balanced Enhancement",
|
||||
"m": "POST",
|
||||
"p": "/new_enhancer/image_previous/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -246,7 +282,11 @@
|
||||
"title": "Background_And_Cutout",
|
||||
"api_key": "Background_And_Cutout",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/cutout/",
|
||||
"chips": ["background", "cutout", "lama"],
|
||||
"chips": [
|
||||
"background",
|
||||
"cutout",
|
||||
"lama"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-bg-remover-p3m",
|
||||
@@ -316,7 +356,11 @@
|
||||
"title": "Creative_And_Artistic",
|
||||
"api_key": "Creative_And_Artistic",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/creative/",
|
||||
"chips": ["cartoon", "polaroid", "art"],
|
||||
"chips": [
|
||||
"cartoon",
|
||||
"polaroid",
|
||||
"art"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-cartoon-avatar",
|
||||
@@ -381,5 +425,36 @@
|
||||
"subs": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "portrait-retouch",
|
||||
"api_key": "portrait-retouch",
|
||||
"api_ip_link": "http://127.0.0.1:8888",
|
||||
"chips": [
|
||||
"custom",
|
||||
"neural"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-glow-portrait-ai",
|
||||
"title": "AI Studio Glow & Skin Illuminator",
|
||||
"summary": "Generates natural golden hour studio radiance and epidermal luminescence.",
|
||||
"full_url": "http://127.0.0.1:8888/apis/glow/process/",
|
||||
"path": "/apis/glow/process/",
|
||||
"port": "8888",
|
||||
"method": "POST",
|
||||
"resp": "image/jpeg",
|
||||
"params": [
|
||||
{
|
||||
"n": "image",
|
||||
"ty": "file (binary)",
|
||||
"rq": true,
|
||||
"lc": "multipart/form-data",
|
||||
"ds": "Input source photograph for transformation."
|
||||
}
|
||||
],
|
||||
"headers": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user