jbilcke-hf HF staff commited on
Commit
2ccf6f7
β€’
1 Parent(s): d4febae

update the nfo

Browse files
Files changed (3) hide show
  1. package-lock.json +9 -0
  2. package.json +1 -0
  3. public/index.html +15 -8
package-lock.json CHANGED
@@ -13,6 +13,7 @@
13
  "@huggingface/inference": "^2.6.1",
14
  "@types/express": "^4.17.17",
15
  "express": "^4.18.2",
 
16
  "ts-node": "^10.9.1",
17
  "uuid": "^9.0.0"
18
  }
@@ -755,6 +756,14 @@
755
  "url": "https://github.com/sponsors/ljharb"
756
  }
757
  },
 
 
 
 
 
 
 
 
758
  "node_modules/statuses": {
759
  "version": "2.0.1",
760
  "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
 
13
  "@huggingface/inference": "^2.6.1",
14
  "@types/express": "^4.17.17",
15
  "express": "^4.18.2",
16
+ "slugify": "^1.6.6",
17
  "ts-node": "^10.9.1",
18
  "uuid": "^9.0.0"
19
  }
 
756
  "url": "https://github.com/sponsors/ljharb"
757
  }
758
  },
759
+ "node_modules/slugify": {
760
+ "version": "1.6.6",
761
+ "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz",
762
+ "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==",
763
+ "engines": {
764
+ "node": ">=8.0.0"
765
+ }
766
+ },
767
  "node_modules/statuses": {
768
  "version": "2.0.1",
769
  "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
package.json CHANGED
@@ -17,6 +17,7 @@
17
  "@huggingface/inference": "^2.6.1",
18
  "@types/express": "^4.17.17",
19
  "express": "^4.18.2",
 
20
  "ts-node": "^10.9.1",
21
  "uuid": "^9.0.0"
22
  }
 
17
  "@huggingface/inference": "^2.6.1",
18
  "@types/express": "^4.17.17",
19
  "express": "^4.18.2",
20
+ "slugify": "^1.6.6",
21
  "ts-node": "^10.9.1",
22
  "uuid": "^9.0.0"
23
  }
public/index.html CHANGED
@@ -28,9 +28,16 @@
28
  ? 'text-lg lg:text-xl'
29
  : 'text-lg lg:text-xl'"
30
  >
31
- <p>A space to generate tiny web apps.</p>
32
- <p>In case of hallucination try generating again 🎲</p>
33
  </div>
 
 
 
 
 
 
 
34
  <textarea
35
  name="promptDraft"
36
  x-model="promptDraft"
@@ -57,17 +64,17 @@
57
  <div class="flex flex-col text-stone-700 space-y-1 md:space-y-2">
58
  <p class="text-stone-700">
59
  Model used:
60
- <a href="https://huggingface.co/meta-llama" class="underline" target="_blank">
61
- Llama-2
62
  </a>
63
  </p>
64
- <p>Powered by πŸ€— <a href="https://huggingface.co/inference-endpoints" class="underline" target="_blank">Inference Endpoints</a></p>
65
  <p class="text-stone-700" x-show="state === 'loading'">
66
- Waiting for the stream to begin (might take a few minutes)..
67
  </p>
68
  <p class="text-stone-700" x-show="state === 'streaming'">
69
  Content size: <span x-text="humanFileSize(size, true, 2)"></span>. This version generates up
70
- to 1150 tokens.
71
  </p>
72
  </div>
73
  </div>
@@ -82,7 +89,7 @@
82
  class="border-none w-full md:min-h-screen"
83
  :src="!open
84
  ? '/placeholder.html'
85
- : `/app?prompt=${encodeURIComponent(prompt)}`
86
  "
87
  ></iframe>
88
 
 
28
  ? 'text-lg lg:text-xl'
29
  : 'text-lg lg:text-xl'"
30
  >
31
+ <p>A space to generate Hugging Face Spaces using a LLM.</p>
32
+ <p>The Space will be created under your name, so please provide a valid Hugging Face token (with <span class="font-bold font-mono text-sm text-red-900">WRITE</span> access).</p>
33
  </div>
34
+ <input
35
+ name="token"
36
+ type="password"
37
+ x-model="token"
38
+ placeholder="Your Hugging Face token"
39
+ class="input w-full rounded text-stone-800 bg-stone-50 border-2 border-stone-400 font-mono text-md md:text-lg"
40
+ />
41
  <textarea
42
  name="promptDraft"
43
  x-model="promptDraft"
 
64
  <div class="flex flex-col text-stone-700 space-y-1 md:space-y-2">
65
  <p class="text-stone-700">
66
  Model used:
67
+ <a href="https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf" class="underline" target="_blank">
68
+ codellama/CodeLlama-34b-Instruct-hf
69
  </a>
70
  </p>
71
+ <p>Powered by πŸ€— <a href="https://huggingface.co/inference-api" class="underline" target="_blank">Inference API</a></p>
72
  <p class="text-stone-700" x-show="state === 'loading'">
73
+ Waiting for the generation to begin (might take a few minutes)..
74
  </p>
75
  <p class="text-stone-700" x-show="state === 'streaming'">
76
  Content size: <span x-text="humanFileSize(size, true, 2)"></span>. This version generates up
77
+ to 4096 tokens.
78
  </p>
79
  </div>
80
  </div>
 
89
  class="border-none w-full md:min-h-screen"
90
  :src="!open
91
  ? '/placeholder.html'
92
+ : `/app?prompt=${encodeURIComponent(prompt)}&token=${encodeURIComponent(token)}`
93
  "
94
  ></iframe>
95