neetnestor
commited on
Commit
·
871174e
1
Parent(s):
885ad80
Update texts
Browse files- index.html +14 -11
index.html
CHANGED
@@ -15,13 +15,7 @@
|
|
15 |
<body>
|
16 |
<h1>WebLLM Structured Generation Playground</h1>
|
17 |
<h4>
|
18 |
-
Generate structured output from LLMs using
|
19 |
-
<a
|
20 |
-
href="https://webllm.mlc.ai/"
|
21 |
-
referrerpolicy="no-referrer"
|
22 |
-
target="_blank"
|
23 |
-
>WebLLM</a
|
24 |
-
>
|
25 |
<a
|
26 |
referrerpolicy="no-referrer"
|
27 |
href="https://github.com/mlc-ai/web-llm"
|
@@ -44,8 +38,8 @@
|
|
44 |
<label for="grammar-selection" class="container"
|
45 |
><span><b>Grammar</b></span>
|
46 |
<select id="grammar-selection" value="json">
|
47 |
-
<option value="json">JSON (Default)</option>
|
48 |
-
<option value="custom">Custom
|
49 |
</select></label
|
50 |
>
|
51 |
</form>
|
@@ -54,13 +48,22 @@
|
|
54 |
<form>
|
55 |
<label for="ebnf-grammar" class="container"
|
56 |
><span><b>Custom EBNF Grammar</b></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
<textarea
|
58 |
id="ebnf-grammar"
|
59 |
dir="ltr"
|
60 |
placeholder="Type your custom EBNF grammar..."
|
61 |
rows="1"
|
62 |
-
></textarea
|
63 |
-
>
|
64 |
</label>
|
65 |
</form>
|
66 |
</div>
|
|
|
15 |
<body>
|
16 |
<h1>WebLLM Structured Generation Playground</h1>
|
17 |
<h4>
|
18 |
+
Generate structured output from LLMs using
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<a
|
20 |
referrerpolicy="no-referrer"
|
21 |
href="https://github.com/mlc-ai/web-llm"
|
|
|
38 |
<label for="grammar-selection" class="container"
|
39 |
><span><b>Grammar</b></span>
|
40 |
<select id="grammar-selection" value="json">
|
41 |
+
<option value="json">JSON Schema (Default)</option>
|
42 |
+
<option value="custom">Custom Grammar</option>
|
43 |
</select></label
|
44 |
>
|
45 |
</form>
|
|
|
48 |
<form>
|
49 |
<label for="ebnf-grammar" class="container"
|
50 |
><span><b>Custom EBNF Grammar</b></span>
|
51 |
+
<span>
|
52 |
+
The custom grammar is described in the
|
53 |
+
<a
|
54 |
+
href="https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form"
|
55 |
+
referrerpolicy="no-referrer"
|
56 |
+
target="_blank"
|
57 |
+
>extended Backus-Naur form (EBNF)</a
|
58 |
+
>. Below is an example of JSON grammar in EBNF. Please follow
|
59 |
+
this example when writing new grammars.
|
60 |
+
</span>
|
61 |
<textarea
|
62 |
id="ebnf-grammar"
|
63 |
dir="ltr"
|
64 |
placeholder="Type your custom EBNF grammar..."
|
65 |
rows="1"
|
66 |
+
></textarea>
|
|
|
67 |
</label>
|
68 |
</form>
|
69 |
</div>
|