Spaces:
Runtime error
Runtime error
Update src/flux/xflux_pipeline.py
Browse files
src/flux/xflux_pipeline.py
CHANGED
|
@@ -162,7 +162,7 @@ class XFluxPipeline:
|
|
| 162 |
image_proj = self.improj(image_prompt_embeds)
|
| 163 |
return image_proj
|
| 164 |
|
| 165 |
-
@spaces.GPU
|
| 166 |
def __call__(self,
|
| 167 |
prompt: str,
|
| 168 |
image_prompt: Image = None,
|
|
@@ -219,7 +219,6 @@ class XFluxPipeline:
|
|
| 219 |
neg_ip_scale=neg_ip_scale,
|
| 220 |
)
|
| 221 |
|
| 222 |
-
@torch.inference_mode()
|
| 223 |
def gradio_generate(self, prompt, image_prompt, controlnet_image, width, height, guidance,
|
| 224 |
num_steps, seed, true_gs, ip_scale, neg_ip_scale, neg_prompt,
|
| 225 |
neg_image_prompt, timestep_to_start_cfg, control_type, control_weight,
|
|
|
|
| 162 |
image_proj = self.improj(image_prompt_embeds)
|
| 163 |
return image_proj
|
| 164 |
|
| 165 |
+
@spaces.GPU()
|
| 166 |
def __call__(self,
|
| 167 |
prompt: str,
|
| 168 |
image_prompt: Image = None,
|
|
|
|
| 219 |
neg_ip_scale=neg_ip_scale,
|
| 220 |
)
|
| 221 |
|
|
|
|
| 222 |
def gradio_generate(self, prompt, image_prompt, controlnet_image, width, height, guidance,
|
| 223 |
num_steps, seed, true_gs, ip_scale, neg_ip_scale, neg_prompt,
|
| 224 |
neg_image_prompt, timestep_to_start_cfg, control_type, control_weight,
|