Spaces:
Running on Zero
Running on Zero
update aapp
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def load_lora_opt(pipe, lora_input):
|
|
| 86 |
shutil.rmtree(tmp_dir, ignore_errors=True)
|
| 87 |
|
| 88 |
# Generation function for Qwen/Qwen-Image
|
| 89 |
-
@spaces.GPU
|
| 90 |
def generate_qwen(
|
| 91 |
prompt: str,
|
| 92 |
negative_prompt: str = "",
|
|
@@ -152,7 +152,7 @@ def generate_qwen(
|
|
| 152 |
return image_paths, seed, f"{duration:.2f}", zip_path
|
| 153 |
|
| 154 |
# Wrapper function to handle UI logic
|
| 155 |
-
@spaces.GPU
|
| 156 |
def generate(
|
| 157 |
prompt: str,
|
| 158 |
negative_prompt: str,
|
|
|
|
| 86 |
shutil.rmtree(tmp_dir, ignore_errors=True)
|
| 87 |
|
| 88 |
# Generation function for Qwen/Qwen-Image
|
| 89 |
+
@spaces.GPU(duration=120)
|
| 90 |
def generate_qwen(
|
| 91 |
prompt: str,
|
| 92 |
negative_prompt: str = "",
|
|
|
|
| 152 |
return image_paths, seed, f"{duration:.2f}", zip_path
|
| 153 |
|
| 154 |
# Wrapper function to handle UI logic
|
| 155 |
+
@spaces.GPU(duration=120)
|
| 156 |
def generate(
|
| 157 |
prompt: str,
|
| 158 |
negative_prompt: str,
|