coyotte508 HF staff commited on
Commit
c313758
โ€ข
1 Parent(s): b2a43a2

๐Ÿ› Fix URLs

Browse files
Files changed (2) hide show
  1. app.ts +5 -5
  2. dist/app.js +5 -5
app.ts CHANGED
@@ -3,11 +3,11 @@ import { createRepo, commit, CommitFile, whoAmI } from "@huggingface/hub";
3
  const c = console;
4
 
5
  const FILES_TO_UPLOAD = [
6
- `${window.location.origin}${window.location.pathname}/mobilenet/model.json`,
7
- `${window.location.origin}${window.location.pathname}/mobilenet/group1-shard1of2`,
8
- `${window.location.origin}${window.location.pathname}/mobilenet/group1-shard2of2`,
9
- `${window.location.origin}${window.location.pathname}/mobilenet/coffee.jpg`,
10
- `${window.location.origin}${window.location.pathname}/mobilenet/README.md`,
11
  ];
12
 
13
  function filenameFromURL(url: string): string {
 
3
  const c = console;
4
 
5
  const FILES_TO_UPLOAD = [
6
+ `${window.location.origin}/mobilenet/model.json`,
7
+ `${window.location.origin}/mobilenet/group1-shard1of2`,
8
+ `${window.location.origin}/mobilenet/group1-shard2of2`,
9
+ `${window.location.origin}/mobilenet/coffee.jpg`,
10
+ `${window.location.origin}/mobilenet/README.md`,
11
  ];
12
 
13
  function filenameFromURL(url: string): string {
dist/app.js CHANGED
@@ -1,11 +1,11 @@
1
  import { createRepo, commit, whoAmI } from "@huggingface/hub";
2
  const c = console;
3
  const FILES_TO_UPLOAD = [
4
- `${window.location.origin}${window.location.pathname}/mobilenet/model.json`,
5
- `${window.location.origin}${window.location.pathname}/mobilenet/group1-shard1of2`,
6
- `${window.location.origin}${window.location.pathname}/mobilenet/group1-shard2of2`,
7
- `${window.location.origin}${window.location.pathname}/mobilenet/coffee.jpg`,
8
- `${window.location.origin}${window.location.pathname}/mobilenet/README.md`,
9
  ];
10
  function filenameFromURL(url) {
11
  return url.substring(url.lastIndexOf("/") + 1);
 
1
  import { createRepo, commit, whoAmI } from "@huggingface/hub";
2
  const c = console;
3
  const FILES_TO_UPLOAD = [
4
+ `${window.location.origin}/mobilenet/model.json`,
5
+ `${window.location.origin}/mobilenet/group1-shard1of2`,
6
+ `${window.location.origin}/mobilenet/group1-shard2of2`,
7
+ `${window.location.origin}/mobilenet/coffee.jpg`,
8
+ `${window.location.origin}/mobilenet/README.md`,
9
  ];
10
  function filenameFromURL(url) {
11
  return url.substring(url.lastIndexOf("/") + 1);