Spaces:
Running
on
Zero
Running
on
Zero
set gpu duration
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def clear_cache(transformer):
|
|
| 60 |
for _, attn_processor in transformer.attn_processors.items():
|
| 61 |
attn_processor.bank_kv.clear()
|
| 62 |
|
| 63 |
-
@spaces.GPU()
|
| 64 |
def generate_image(
|
| 65 |
lora_name,
|
| 66 |
prompt,
|
|
|
|
| 60 |
for _, attn_processor in transformer.attn_processors.items():
|
| 61 |
attn_processor.bank_kv.clear()
|
| 62 |
|
| 63 |
+
@spaces.GPU(duration="30")
|
| 64 |
def generate_image(
|
| 65 |
lora_name,
|
| 66 |
prompt,
|