rahul7star commited on
Commit
dedc3b3
·
verified ·
1 Parent(s): 8fd9b47

Update app_lora1.py

Browse files
Files changed (1) hide show
  1. app_lora1.py +2 -1
app_lora1.py CHANGED
@@ -5,6 +5,7 @@ import traceback
5
  from diffusers import ZImagePipeline
6
  from huggingface_hub import list_repo_files
7
  from PIL import Image
 
8
 
9
  # ============================================================
10
  # CONFIG
@@ -68,7 +69,7 @@ def list_loras_from_repo(repo_id: str):
68
  # ============================================================
69
  # IMAGE GENERATION (SAFE LORA LOGIC)
70
  # ============================================================
71
-
72
  def generate_image(prompt, height, width, steps, seed, guidance_scale):
73
  LOGS = []
74
 
 
5
  from diffusers import ZImagePipeline
6
  from huggingface_hub import list_repo_files
7
  from PIL import Image
8
+ import spaces
9
 
10
  # ============================================================
11
  # CONFIG
 
69
  # ============================================================
70
  # IMAGE GENERATION (SAFE LORA LOGIC)
71
  # ============================================================
72
+ @spaces.GPU()
73
  def generate_image(prompt, height, width, steps, seed, guidance_scale):
74
  LOGS = []
75