taesiri commited on
Commit
942ca77
·
1 Parent(s): 3037e32
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def rollout(attentions, discard_ratio, head_fusion, num_prefix_tokens=1):
100
  mask = mask / np.max(mask)
101
  return mask
102
 
103
- @spaces.GPU(duration=120) # Allowing up to 120 seconds for this operation
104
  def visualize_attention(
105
  image: Image.Image,
106
  model_name: str,
 
100
  mask = mask / np.max(mask)
101
  return mask
102
 
103
+ @spaces.GPU
104
  def visualize_attention(
105
  image: Image.Image,
106
  model_name: str,