Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,13 @@ def split_image(input_image, num_splits=4):
|
|
29 |
|
30 |
return output_images
|
31 |
|
32 |
-
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch_dtype)
|
33 |
|
34 |
MAX_SEED = np.iinfo(np.int32).max
|
35 |
|
36 |
@spaces.GPU
|
37 |
def infer(prompt, seed=1, randomize_seed=False, num_inference_steps=28):
|
|
|
38 |
prompt_template = f"A side by side 4 frame image showing high quality consecutive stills from a looped gif animation moving from left to right. The scene has motion. The stills are of {prompt}"
|
39 |
if randomize_seed:
|
40 |
seed = random.randint(0, MAX_SEED)
|
|
|
29 |
|
30 |
return output_images
|
31 |
|
32 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch_dtype).to(device)
|
33 |
|
34 |
MAX_SEED = np.iinfo(np.int32).max
|
35 |
|
36 |
@spaces.GPU
|
37 |
def infer(prompt, seed=1, randomize_seed=False, num_inference_steps=28):
|
38 |
+
print('entered the function')
|
39 |
prompt_template = f"A side by side 4 frame image showing high quality consecutive stills from a looped gif animation moving from left to right. The scene has motion. The stills are of {prompt}"
|
40 |
if randomize_seed:
|
41 |
seed = random.randint(0, MAX_SEED)
|