Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ def main():
|
|
121 |
out2 = pipe(new_prompt, num_inference_steps=inf_steps, generator=gen)
|
122 |
image2 = np.array(out2.images[0]) / 255
|
123 |
else:
|
124 |
-
with trace(pipe) as tc:
|
125 |
out = pipe(prompt, num_inference_steps=inf_steps, generator=gen)
|
126 |
image = np.array(out.images[0]) / 255
|
127 |
heat_map = tc.compute_global_heat_map()
|
|
|
121 |
out2 = pipe(new_prompt, num_inference_steps=inf_steps, generator=gen)
|
122 |
image2 = np.array(out2.images[0]) / 255
|
123 |
else:
|
124 |
+
with trace(pipe, load_heads=False, save_heads=False) as tc:
|
125 |
out = pipe(prompt, num_inference_steps=inf_steps, generator=gen)
|
126 |
image = np.array(out.images[0]) / 255
|
127 |
heat_map = tc.compute_global_heat_map()
|