Spaces:
Runtime error
Runtime error
Commit
β’
10f2d95
1
Parent(s):
4b1909d
add some examples
Browse files- public/index.html +7 -6
public/index.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
? 'text-lg md:text-xl lg:text-2xl'
|
29 |
: 'text-lg md:text-xl lg:text-2xl'"
|
30 |
>
|
31 |
-
<p>A space to generate web
|
32 |
<p>Running on π€ Inference Endpoints.</p>
|
33 |
</div>
|
34 |
<textarea
|
@@ -38,6 +38,12 @@
|
|
38 |
placeholder="Describe your web app"
|
39 |
class="input input-bordered w-full rounded text-stone-800 bg-stone-100 font-mono text-md md:text-lg h-24 md:h-48"
|
40 |
></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<button
|
42 |
class="btn disabled:text-stone-400"
|
43 |
@click="open = true, prompt = promptDraft, state = state === 'stopped' ? 'loading' : 'stopped'"
|
@@ -114,11 +120,6 @@
|
|
114 |
function app() {
|
115 |
return {
|
116 |
open: false,
|
117 |
-
examples: {
|
118 |
-
"compute the BMI": "a simple page to compute the BMI (use SI units)",
|
119 |
-
"animals": "app listing various animals",
|
120 |
-
// "page about dolphins": "a page about dolphins, with text and a few pictures"
|
121 |
-
},
|
122 |
promptDraft:
|
123 |
new URLSearchParams(window.location.search).get("prompt") || '',
|
124 |
prompt: "",
|
|
|
28 |
? 'text-lg md:text-xl lg:text-2xl'
|
29 |
: 'text-lg md:text-xl lg:text-2xl'"
|
30 |
>
|
31 |
+
<p>A space to generate tiny web apps.</p>
|
32 |
<p>Running on π€ Inference Endpoints.</p>
|
33 |
</div>
|
34 |
<textarea
|
|
|
38 |
placeholder="Describe your web app"
|
39 |
class="input input-bordered w-full rounded text-stone-800 bg-stone-100 font-mono text-md md:text-lg h-24 md:h-48"
|
40 |
></textarea>
|
41 |
+
<p class="py-3 text-stone-700 text-italic">
|
42 |
+
Examples:
|
43 |
+
|
44 |
+
<a href="/?prompt=a simple page to compute the BMI using metric units" class="text-bold underline">compute my BMI</a>,
|
45 |
+
<a href="/?prompt=app listing various animals from the savanna, with their photos" class="text-bold underline">photos of animals</a>
|
46 |
+
</p>
|
47 |
<button
|
48 |
class="btn disabled:text-stone-400"
|
49 |
@click="open = true, prompt = promptDraft, state = state === 'stopped' ? 'loading' : 'stopped'"
|
|
|
120 |
function app() {
|
121 |
return {
|
122 |
open: false,
|
|
|
|
|
|
|
|
|
|
|
123 |
promptDraft:
|
124 |
new URLSearchParams(window.location.search).get("prompt") || '',
|
125 |
prompt: "",
|