Commit
·
ab4d3d5
1
Parent(s):
2a47abb
Fix resource URL construction for models in index.html
Browse files- index.html +3 -1
index.html
CHANGED
@@ -441,7 +441,9 @@
|
|
441 |
const resourceId = isDataset ? result.dataset_id : result.model_id;
|
442 |
const resourceType = isDataset ? "datasets" : "models";
|
443 |
const resourceIcon = isDataset ? "database" : "box";
|
444 |
-
const resourceUrl =
|
|
|
|
|
445 |
|
446 |
// Check if we're in the trending tab
|
447 |
const isTrendingTab =
|
|
|
441 |
const resourceId = isDataset ? result.dataset_id : result.model_id;
|
442 |
const resourceType = isDataset ? "datasets" : "models";
|
443 |
const resourceIcon = isDataset ? "database" : "box";
|
444 |
+
const resourceUrl = isDataset
|
445 |
+
? `https://huggingface.co/${resourceType}/${resourceId}`
|
446 |
+
: `https://huggingface.co/${resourceId}`;
|
447 |
|
448 |
// Check if we're in the trending tab
|
449 |
const isTrendingTab =
|