Spaces:
Running
Running
Commit
·
df342e6
1
Parent(s):
fa79069
search in specific domains
Browse files
viewer/src/routes/SearchButtonComponent.svelte
CHANGED
@@ -8,8 +8,10 @@
|
|
8 |
let clicked = false;
|
9 |
|
10 |
function onEditButtonClick(row: Row) {
|
11 |
-
const searchName =
|
12 |
-
|
|
|
|
|
13 |
clicked = true;
|
14 |
}
|
15 |
</script>
|
|
|
8 |
let clicked = false;
|
9 |
|
10 |
function onEditButtonClick(row: Row) {
|
11 |
+
const searchName =
|
12 |
+
row.Name + " site:huggingface.co/models OR site:huggingface.co/spaces OR site:huggingface.co/datasets";
|
13 |
+
const encodedSearchName = encodeURIComponent(searchName);
|
14 |
+
window.open("https://www.google.com/search?q=" + encodedSearchName, "_blank");
|
15 |
clicked = true;
|
16 |
}
|
17 |
</script>
|