Spaces:
Running
Running
bfloat
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
18 |
#
|
19 |
# login()
|
20 |
|
21 |
-
dtype = torch.
|
22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
23 |
|
24 |
base_model = "black-forest-labs/FLUX.1-dev"
|
@@ -47,7 +47,7 @@ def get_system_memory():
|
|
47 |
}
|
48 |
|
49 |
|
50 |
-
@spaces.GPU(duration=
|
51 |
def inpaint(
|
52 |
image,
|
53 |
mask,
|
|
|
18 |
#
|
19 |
# login()
|
20 |
|
21 |
+
dtype = torch.bfloat16
|
22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
23 |
|
24 |
base_model = "black-forest-labs/FLUX.1-dev"
|
|
|
47 |
}
|
48 |
|
49 |
|
50 |
+
@spaces.GPU(duration=60)
|
51 |
def inpaint(
|
52 |
image,
|
53 |
mask,
|