Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ adapter_id = "jbilcke-hf/flux-satellite"
|
|
17 |
|
18 |
flux_pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
19 |
flux_pipe.load_lora_weights(adapter_id)
|
20 |
-
flux_pipe =
|
21 |
|
22 |
def generate_and_process_map(prompt: str) -> str | None:
|
23 |
"""Generate satellite image from prompt and convert to 3D model."""
|
|
|
17 |
|
18 |
flux_pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
19 |
flux_pipe.load_lora_weights(adapter_id)
|
20 |
+
flux_pipe = flux_pipe.to(device)
|
21 |
|
22 |
def generate_and_process_map(prompt: str) -> str | None:
|
23 |
"""Generate satellite image from prompt and convert to 3D model."""
|