Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
@@ -15,6 +16,7 @@ pipe = AuraFlowPipeline.from_pretrained(
|
|
15 |
MAX_SEED = np.iinfo(np.int32).max
|
16 |
MAX_IMAGE_SIZE = 1024
|
17 |
|
|
|
18 |
def infer(prompt,
|
19 |
negative_prompt="",
|
20 |
seed=42,
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import random
|
|
|
16 |
MAX_SEED = np.iinfo(np.int32).max
|
17 |
MAX_IMAGE_SIZE = 1024
|
18 |
|
19 |
+
@spaces.GPU(duration=95)
|
20 |
def infer(prompt,
|
21 |
negative_prompt="",
|
22 |
seed=42,
|