Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def infer(image_path, prompt, orbit_type, progress=gr.Progress(track_tqdm=True))
|
|
| 45 |
weight_name = "orbit_up_lora_weights.safetensors"
|
| 46 |
adapter_name = "orbit_up_lora_weights"
|
| 47 |
lora_rank = 256
|
| 48 |
-
pipe.load_lora_weights(lora_path, weight_name=weight_name, adapter_name=
|
| 49 |
pipe.fuse_lora(lora_scale=1 / lora_rank)
|
| 50 |
pipe.to("cuda")
|
| 51 |
|
|
@@ -85,10 +85,11 @@ with gr.Blocks() as demo:
|
|
| 85 |
[
|
| 86 |
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg",
|
| 87 |
"An astronaut hatching from an egg, on the surface of the moon, the darkness and depth of space realised in the background.",
|
| 88 |
-
"Left"
|
|
|
|
| 89 |
]
|
| 90 |
],
|
| 91 |
-
inputs=[image_in, prompt, orbit_type]
|
| 92 |
)
|
| 93 |
|
| 94 |
submit_btn.click(
|
|
|
|
| 45 |
weight_name = "orbit_up_lora_weights.safetensors"
|
| 46 |
adapter_name = "orbit_up_lora_weights"
|
| 47 |
lora_rank = 256
|
| 48 |
+
pipe.load_lora_weights(lora_path, weight_name=weight_name, adapter_name=adapter_name)
|
| 49 |
pipe.fuse_lora(lora_scale=1 / lora_rank)
|
| 50 |
pipe.to("cuda")
|
| 51 |
|
|
|
|
| 85 |
[
|
| 86 |
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg",
|
| 87 |
"An astronaut hatching from an egg, on the surface of the moon, the darkness and depth of space realised in the background.",
|
| 88 |
+
"Left",
|
| 89 |
+
"./examples/output_astronaut_left.mp4"
|
| 90 |
]
|
| 91 |
],
|
| 92 |
+
inputs=[image_in, prompt, orbit_type, video_out]
|
| 93 |
)
|
| 94 |
|
| 95 |
submit_btn.click(
|