Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,6 @@ from diffusers.utils import load_image
|
|
15 |
from pipeline_flux_control_removal import FluxControlRemovalPipeline
|
16 |
pipe = None
|
17 |
torch.set_grad_enabled(False)
|
18 |
-
image_path = mask_path = None
|
19 |
-
image_examples = [...]
|
20 |
image_path = mask_path =None
|
21 |
image_examples = [
|
22 |
[
|
@@ -100,7 +98,7 @@ def predict(
|
|
100 |
mask_paths
|
101 |
|
102 |
):
|
103 |
-
|
104 |
gr.Info(str(f"Set seed = {seed}"))
|
105 |
if image_paths is not None:
|
106 |
input_image["background"] = load_image(image_paths).convert("RGB")
|
|
|
15 |
from pipeline_flux_control_removal import FluxControlRemovalPipeline
|
16 |
pipe = None
|
17 |
torch.set_grad_enabled(False)
|
|
|
|
|
18 |
image_path = mask_path =None
|
19 |
image_examples = [
|
20 |
[
|
|
|
98 |
mask_paths
|
99 |
|
100 |
):
|
101 |
+
|
102 |
gr.Info(str(f"Set seed = {seed}"))
|
103 |
if image_paths is not None:
|
104 |
input_image["background"] = load_image(image_paths).convert("RGB")
|