Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from diffusers import AuraFlowPipeline
|
|
3 |
import torch
|
4 |
import gradio as gr
|
5 |
|
|
|
6 |
def initialize_auraflow_pipeline():
|
7 |
"""Initialize and return the AuraFlowPipeline."""
|
8 |
pipeline = AuraFlowPipeline.from_pretrained(
|
@@ -12,7 +13,7 @@ def initialize_auraflow_pipeline():
|
|
12 |
).to("cuda")
|
13 |
return pipeline
|
14 |
|
15 |
-
@spaces.GPU(
|
16 |
def generate_image(pipeline, prompt, width, height, num_inference_steps, seed, guidance_scale):
|
17 |
"""Generate an image using the AuraFlowPipeline."""
|
18 |
generator = torch.Generator().manual_seed(seed)
|
|
|
3 |
import torch
|
4 |
import gradio as gr
|
5 |
|
6 |
+
@spaces.GPU()
|
7 |
def initialize_auraflow_pipeline():
|
8 |
"""Initialize and return the AuraFlowPipeline."""
|
9 |
pipeline = AuraFlowPipeline.from_pretrained(
|
|
|
13 |
).to("cuda")
|
14 |
return pipeline
|
15 |
|
16 |
+
@spaces.GPU()
|
17 |
def generate_image(pipeline, prompt, width, height, num_inference_steps, seed, guidance_scale):
|
18 |
"""Generate an image using the AuraFlowPipeline."""
|
19 |
generator = torch.Generator().manual_seed(seed)
|