Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,19 +40,7 @@ pipe.load_lora_weights("ByteDance/Hyper-SD", weight_name="Hyper-SD15-1step-lora.
|
|
| 40 |
pipe.to("cuda")
|
| 41 |
pipe.scheduler = TCDScheduler.from_config(pipe.scheduler.config, timestep_spacing ="trailing")
|
| 42 |
|
| 43 |
-
with gr.Blocks() as demo:
|
| 44 |
-
block.load(
|
| 45 |
-
None,
|
| 46 |
-
None,
|
| 47 |
-
_js="""
|
| 48 |
-
() => {
|
| 49 |
-
const params = new URLSearchParams(window.location.search);
|
| 50 |
-
if (!params.has('__theme')) {
|
| 51 |
-
params.set('__theme', 'dark');
|
| 52 |
-
window.location.search = params.toString();
|
| 53 |
-
}
|
| 54 |
-
}""",
|
| 55 |
-
)
|
| 56 |
with gr.Column():
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column():
|
|
|
|
| 40 |
pipe.to("cuda")
|
| 41 |
pipe.scheduler = TCDScheduler.from_config(pipe.scheduler.config, timestep_spacing ="trailing")
|
| 42 |
|
| 43 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
with gr.Column():
|
| 45 |
with gr.Row():
|
| 46 |
with gr.Column():
|