Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ if not os.path.exists(model_path):
|
|
| 53 |
# ==========================================
|
| 54 |
# 3. Dynamic GPU Inference Function
|
| 55 |
# ==========================================
|
| 56 |
-
@spaces.
|
| 57 |
def generate_image(user_prompt):
|
| 58 |
if not os.path.exists("workflow_api.json"):
|
| 59 |
print("Error: workflow_api.json missing from root directory.")
|
|
|
|
| 53 |
# ==========================================
|
| 54 |
# 3. Dynamic GPU Inference Function
|
| 55 |
# ==========================================
|
| 56 |
+
@spaces.gpu(duration=120)
|
| 57 |
def generate_image(user_prompt):
|
| 58 |
if not os.path.exists("workflow_api.json"):
|
| 59 |
print("Error: workflow_api.json missing from root directory.")
|