Julian Bilcke
commited on
Commit
Β·
e93a881
1
Parent(s):
02ac244
testing fixes for space iframe integration
Browse files- public/index.html +10 -10
public/index.html
CHANGED
|
@@ -9,13 +9,13 @@
|
|
| 9 |
<body>
|
| 10 |
<div class="flex flex-col md:flex-row" x-data="app()" x-init="init()">
|
| 11 |
<div
|
| 12 |
-
class="hero md:h-
|
| 13 |
:class="open ? 'w-full md:w-2/6' : 'w-full md:w-6/6'"
|
| 14 |
>
|
| 15 |
<div class="hero-content text-center">
|
| 16 |
<div class="flex flex-col w-full md:max-w-xl space-y-3 md:space-y-6">
|
| 17 |
<h1
|
| 18 |
-
class="font-bold text-stone-600 mb-1 md:mb-
|
| 19 |
:class="open
|
| 20 |
? 'text-2xl md:text-3xl lg:text-4xl'
|
| 21 |
: 'text-2xl md:text-3xl lg:text-6xl'"
|
|
@@ -38,7 +38,7 @@
|
|
| 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-
|
| 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>,
|
|
@@ -54,19 +54,19 @@
|
|
| 54 |
<span x-show="promptDraft.length >= minPromptSize && state !== 'stopped'">Stop now</span>
|
| 55 |
<span x-show="promptDraft.length >= minPromptSize && state === 'stopped'">Generate!</span>
|
| 56 |
</button>
|
| 57 |
-
<div class="flex flex-col text-stone-700">
|
| 58 |
-
<p class="
|
| 59 |
Model used:
|
| 60 |
<a href="https://huggingface.co/WizardLM/WizardCoder-15B-V1.0" class="underline" target="_blank">
|
| 61 |
WizardCoder-15B-1.0
|
| 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="
|
| 66 |
Waiting for the stream to begin (might take a few minutes)..
|
| 67 |
</p>
|
| 68 |
-
<p class="
|
| 69 |
-
Content size: <span x-text="humanFileSize(size, true, 2)"></span
|
| 70 |
to 1150 tokens.
|
| 71 |
</p>
|
| 72 |
</div>
|
|
@@ -74,12 +74,12 @@
|
|
| 74 |
</div>
|
| 75 |
</div>
|
| 76 |
<div
|
| 77 |
-
class="flex flex-col transition-[width] delay-150 ease-in-out md:h-
|
| 78 |
:class="open ? 'w-full md:w-4/6' : 'w-full md:w-0'"
|
| 79 |
>
|
| 80 |
<iframe
|
| 81 |
id="iframe"
|
| 82 |
-
class="border-none w-full md:min-h-
|
| 83 |
:src="!open
|
| 84 |
? '/placeholder.html'
|
| 85 |
: `/app?prompt=${encodeURIComponent(prompt)}`
|
|
|
|
| 9 |
<body>
|
| 10 |
<div class="flex flex-col md:flex-row" x-data="app()" x-init="init()">
|
| 11 |
<div
|
| 12 |
+
class="hero md:h-screen bg-stone-100 transition-[width] delay-150 ease-in-out"
|
| 13 |
:class="open ? 'w-full md:w-2/6' : 'w-full md:w-6/6'"
|
| 14 |
>
|
| 15 |
<div class="hero-content text-center">
|
| 16 |
<div class="flex flex-col w-full md:max-w-xl space-y-3 md:space-y-6">
|
| 17 |
<h1
|
| 18 |
+
class="font-bold text-stone-600 mb-1 md:mb-3 transition-all delay-150 ease-in-out"
|
| 19 |
:class="open
|
| 20 |
? 'text-2xl md:text-3xl lg:text-4xl'
|
| 21 |
: 'text-2xl md:text-3xl lg:text-6xl'"
|
|
|
|
| 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-1 md:py-2 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>,
|
|
|
|
| 54 |
<span x-show="promptDraft.length >= minPromptSize && state !== 'stopped'">Stop now</span>
|
| 55 |
<span x-show="promptDraft.length >= minPromptSize && state === 'stopped'">Generate!</span>
|
| 56 |
</button>
|
| 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/WizardLM/WizardCoder-15B-V1.0" class="underline" target="_blank">
|
| 61 |
WizardCoder-15B-1.0
|
| 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>
|
|
|
|
| 74 |
</div>
|
| 75 |
</div>
|
| 76 |
<div
|
| 77 |
+
class="flex flex-col transition-[width] delay-150 ease-in-out md:h-screen"
|
| 78 |
:class="open ? 'w-full md:w-4/6' : 'w-full md:w-0'"
|
| 79 |
>
|
| 80 |
<iframe
|
| 81 |
id="iframe"
|
| 82 |
+
class="border-none w-full md:min-h-screen"
|
| 83 |
:src="!open
|
| 84 |
? '/placeholder.html'
|
| 85 |
: `/app?prompt=${encodeURIComponent(prompt)}`
|