jamesliu1217 commited on
Commit
9afcd96
·
verified ·
1 Parent(s): 30893ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,7 +23,8 @@ class ImageProcessor:
23
  def clear_cache(self, transformer):
24
  for name, attn_processor in transformer.attn_processors.items():
25
  attn_processor.bank_kv.clear()
26
-
 
27
  def process_image(self, prompt='', subject_imgs=[], spatial_imgs=[], height=768, width=768, output_path=None, seed=42):
28
  image = self.pipe(
29
  prompt,
 
23
  def clear_cache(self, transformer):
24
  for name, attn_processor in transformer.attn_processors.items():
25
  attn_processor.bank_kv.clear()
26
+
27
+ @spaces.GPU()
28
  def process_image(self, prompt='', subject_imgs=[], spatial_imgs=[], height=768, width=768, output_path=None, seed=42):
29
  image = self.pipe(
30
  prompt,