Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|