mokady commited on
Commit
596e4a5
1 Parent(s): d5707cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -17,6 +17,7 @@ pipe.load_ip_adapter("briaai/Image-Prompt", subfolder='models', weight_name="ip_
17
 
18
  MAX_SEED = np.iinfo(np.int32).max
19
 
 
20
  def predict(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="", seed=100, randomize_seed=False, center_crop=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=50, progress=gr.Progress(track_tqdm=True)):
21
  if randomize_seed:
22
  seed = random.randint(0, MAX_SEED)
 
17
 
18
  MAX_SEED = np.iinfo(np.int32).max
19
 
20
+ @spaces.GPU(enable_queue=True)
21
  def predict(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="", seed=100, randomize_seed=False, center_crop=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=50, progress=gr.Progress(track_tqdm=True)):
22
  if randomize_seed:
23
  seed = random.randint(0, MAX_SEED)