Spaces:
Runtime error
Runtime error
different model
Browse files- app-controlnetlora.py +1 -1
- static/controlnetlora.html +3 -3
app-controlnetlora.py
CHANGED
@@ -72,7 +72,7 @@ controlnet_canny = ControlNetModel.from_pretrained(
|
|
72 |
canny_torch = SobelOperator(device=device)
|
73 |
|
74 |
models_id = [
|
75 |
-
"
|
76 |
"nitrosocke/Ghibli-Diffusion",
|
77 |
"nitrosocke/mo-di-diffusion",
|
78 |
]
|
|
|
72 |
canny_torch = SobelOperator(device=device)
|
73 |
|
74 |
models_id = [
|
75 |
+
"plasmo/woolitize",
|
76 |
"nitrosocke/Ghibli-Diffusion",
|
77 |
"nitrosocke/mo-di-diffusion",
|
78 |
]
|
static/controlnetlora.html
CHANGED
@@ -225,7 +225,7 @@
|
|
225 |
const models_id = {
|
226 |
"nitrosocke/Ghibli-Diffusion": "ghibli style",
|
227 |
"nitrosocke/mo-di-diffusion": "modern disney style",
|
228 |
-
"
|
229 |
}
|
230 |
|
231 |
document.addEventListener("DOMContentLoaded", () => {
|
@@ -245,7 +245,7 @@
|
|
245 |
const activation = models_id[model];
|
246 |
if (prompt.includes(activation))
|
247 |
return;
|
248 |
-
document.querySelector("#prompt").value = `${activation} portrait of a
|
249 |
})
|
250 |
|
251 |
})
|
@@ -332,7 +332,7 @@
|
|
332 |
<div></div>
|
333 |
<label class="text-sm font-medium " for="steps">Inference Steps
|
334 |
</label>
|
335 |
-
<input type="range" id="steps" name="steps" min="
|
336 |
oninput="this.nextElementSibling.value = Number(this.value)">
|
337 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
338 |
4</output>
|
|
|
225 |
const models_id = {
|
226 |
"nitrosocke/Ghibli-Diffusion": "ghibli style",
|
227 |
"nitrosocke/mo-di-diffusion": "modern disney style",
|
228 |
+
"plasmo/woolitize": "woolitize"
|
229 |
}
|
230 |
|
231 |
document.addEventListener("DOMContentLoaded", () => {
|
|
|
245 |
const activation = models_id[model];
|
246 |
if (prompt.includes(activation))
|
247 |
return;
|
248 |
+
document.querySelector("#prompt").value = `${activation} portrait of a silly monster`;
|
249 |
})
|
250 |
|
251 |
})
|
|
|
332 |
<div></div>
|
333 |
<label class="text-sm font-medium " for="steps">Inference Steps
|
334 |
</label>
|
335 |
+
<input type="range" id="steps" name="steps" min="2" max="10" value="4"
|
336 |
oninput="this.nextElementSibling.value = Number(this.value)">
|
337 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
338 |
4</output>
|