Spaces:
Running
Running
add FLUX
Browse files
src/routes/api/models/+server.ts
CHANGED
|
@@ -43,6 +43,9 @@ export async function GET(request : RequestEvent) {
|
|
| 43 |
case "sd1":
|
| 44 |
base_model_mapped = ['CompVis/stable-diffusion-v1-4', 'runwayml/stable-diffusion-v1-5']
|
| 45 |
break;
|
|
|
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
}
|
| 48 |
|
|
|
|
| 43 |
case "sd1":
|
| 44 |
base_model_mapped = ['CompVis/stable-diffusion-v1-4', 'runwayml/stable-diffusion-v1-5']
|
| 45 |
break;
|
| 46 |
+
case "flux":
|
| 47 |
+
base_model_mapped = ['black-forest-labs/FLUX.1-dev ']
|
| 48 |
+
break;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
src/routes/models/+layout.svelte
CHANGED
|
@@ -92,11 +92,17 @@
|
|
| 92 |
{/if}
|
| 93 |
</svelte:head>
|
| 94 |
|
| 95 |
-
<main class="px-6 py-10 lg:px-10 lg:py-12">
|
| 96 |
<Drawer onSearch={handleChangeSearch} />
|
| 97 |
<h1 class="text-white font-semibold text-2xl">
|
| 98 |
Explore Models ({data?.total_items ?? 0})
|
| 99 |
</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
<div class="flex items-start sm:items-center justify-between mt-5 flex-col sm:flex-row gap-5 sm:justify-between">
|
| 101 |
<Radio
|
| 102 |
options={[
|
|
@@ -141,13 +147,20 @@
|
|
| 141 |
<div class="mt-5 max-w-sm flex items-center justify-start gap-5 w-full">
|
| 142 |
<Input value={form.search} className="lg:min-w-[300px]" placeholder="Filter by model name" onChange={handleChangeSearch} />
|
| 143 |
<div class="flex flex-col items-start justify-center gap-1.5">
|
| 144 |
-
<p class="text-xs text-white/60 whitespace-nowrap">
|
| 145 |
Filter by
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</p>
|
| 147 |
<select value={form.base_model} class="text-white bg-transparent outline-none cursor-pointer" on:change={handleChangeBaseModel}>
|
| 148 |
<option value="">
|
| 149 |
All models
|
| 150 |
</option>
|
|
|
|
|
|
|
|
|
|
| 151 |
<option value="sd3">
|
| 152 |
Stable Diffusion 3
|
| 153 |
</option>
|
|
|
|
| 92 |
{/if}
|
| 93 |
</svelte:head>
|
| 94 |
|
| 95 |
+
<main class="px-6 py-10 lg:px-10 lg:py-12 relative">
|
| 96 |
<Drawer onSearch={handleChangeSearch} />
|
| 97 |
<h1 class="text-white font-semibold text-2xl">
|
| 98 |
Explore Models ({data?.total_items ?? 0})
|
| 99 |
</h1>
|
| 100 |
+
<div class="bg-cyan-500/20 max-w-xl border-2 border-cyan-500/30 w-full p-3 text-white rounded-lg mt-4">
|
| 101 |
+
<p class="font-semibold">FLUX LoRAs are here! ✨</p>
|
| 102 |
+
<p class="opacity-70 text-sm">
|
| 103 |
+
We are excited to announce the arrival of the first FLUX models on LoRA Studio.
|
| 104 |
+
</p>
|
| 105 |
+
</div>
|
| 106 |
<div class="flex items-start sm:items-center justify-between mt-5 flex-col sm:flex-row gap-5 sm:justify-between">
|
| 107 |
<Radio
|
| 108 |
options={[
|
|
|
|
| 147 |
<div class="mt-5 max-w-sm flex items-center justify-start gap-5 w-full">
|
| 148 |
<Input value={form.search} className="lg:min-w-[300px]" placeholder="Filter by model name" onChange={handleChangeSearch} />
|
| 149 |
<div class="flex flex-col items-start justify-center gap-1.5">
|
| 150 |
+
<p class="text-xs text-white/60 whitespace-nowrap flex items-center justify-start gap-2">
|
| 151 |
Filter by
|
| 152 |
+
<span class="relative">
|
| 153 |
+
<span class="w-2 h-2 rounded-full block bg-cyan-500"></span>
|
| 154 |
+
<span class="w-2 h-2 rounded-full block bg-cyan-500 animate-ping absolute top-0 left-0"></span>
|
| 155 |
+
</span>
|
| 156 |
</p>
|
| 157 |
<select value={form.base_model} class="text-white bg-transparent outline-none cursor-pointer" on:change={handleChangeBaseModel}>
|
| 158 |
<option value="">
|
| 159 |
All models
|
| 160 |
</option>
|
| 161 |
+
<option value="flux">
|
| 162 |
+
Flux
|
| 163 |
+
</option>
|
| 164 |
<option value="sd3">
|
| 165 |
Stable Diffusion 3
|
| 166 |
</option>
|