Update index.html
Browse files- index.html +13 -2
index.html
CHANGED
|
@@ -340,7 +340,7 @@
|
|
| 340 |
"aiqtech/FLUX-Ghibli-Studio-LoRA": "Image Gen",
|
| 341 |
"aiqtech/flxgif": "Image Gen",
|
| 342 |
"aiqtech/imaginpaint": "Image Edit",
|
| 343 |
-
|
| 344 |
|
| 345 |
const newProjects = [
|
| 346 |
"fantos/Panorama",
|
|
@@ -368,7 +368,18 @@ const bestProjects = [
|
|
| 368 |
"ginigen/Flux-LayerDiffuse"
|
| 369 |
];
|
| 370 |
|
| 371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
const keys = Object.keys(projectList);
|
| 373 |
const projects = keys.map(key => {
|
| 374 |
const primaryCategory = customCategories[key] || "Image Gen";
|
|
|
|
| 340 |
"aiqtech/FLUX-Ghibli-Studio-LoRA": "Image Gen",
|
| 341 |
"aiqtech/flxgif": "Image Gen",
|
| 342 |
"aiqtech/imaginpaint": "Image Edit",
|
| 343 |
+
};
|
| 344 |
|
| 345 |
const newProjects = [
|
| 346 |
"fantos/Panorama",
|
|
|
|
| 368 |
"ginigen/Flux-LayerDiffuse"
|
| 369 |
];
|
| 370 |
|
| 371 |
+
|
| 372 |
+
// URL 변환 함수
|
| 373 |
+
function transformUrl(url) {
|
| 374 |
+
const prefix = "https://huggingface.co/spaces/";
|
| 375 |
+
if (url.startsWith(prefix)) {
|
| 376 |
+
const rest = url.substring(prefix.length);
|
| 377 |
+
return "https://" + rest.replace("/", "-") + ".hf.space";
|
| 378 |
+
}
|
| 379 |
+
return url;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
// 프로젝트 배열 생성
|
| 383 |
const keys = Object.keys(projectList);
|
| 384 |
const projects = keys.map(key => {
|
| 385 |
const primaryCategory = customCategories[key] || "Image Gen";
|