dylanebert HF Staff commited on
Commit
f7592c1
·
1 Parent(s): b116f4c

simple search name

Browse files
viewer/src/routes/SearchButtonComponent.svelte CHANGED
@@ -8,10 +8,8 @@
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>
 
8
  let clicked = false;
9
 
10
  function onEditButtonClick(row: Row) {
11
+ const searchName = row.Name;
12
+ window.open("https://www.google.com/search?q=" + searchName, "_blank");
 
 
13
  clicked = true;
14
  }
15
  </script>