Spaces:
Runtime error
Runtime error
Afrinetwork7
commited on
Commit
•
225bb6a
1
Parent(s):
a992e53
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_d
|
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
MAX_IMAGE_SIZE = 2048
|
16 |
|
17 |
-
@spaces.GPU(
|
18 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
19 |
if randomize_seed:
|
20 |
seed = random.randint(0, MAX_SEED)
|
|
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
MAX_IMAGE_SIZE = 2048
|
16 |
|
17 |
+
@spaces.GPU()
|
18 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
19 |
if randomize_seed:
|
20 |
seed = random.randint(0, MAX_SEED)
|