Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ _MODEL = get_model()
|
|
| 28 |
|
| 29 |
def plot(attentions: np.ndarray):
|
| 30 |
"""Plots the attention maps from individual attention heads."""
|
| 31 |
-
fig, axes = plt.subplots(nrows=1, ncols=4
|
| 32 |
img_count = 0
|
| 33 |
|
| 34 |
for i in range(attentions.shape[-1]):
|
|
|
|
| 28 |
|
| 29 |
def plot(attentions: np.ndarray):
|
| 30 |
"""Plots the attention maps from individual attention heads."""
|
| 31 |
+
fig, axes = plt.subplots(nrows=1, ncols=4) # figsize=(13, 13)
|
| 32 |
img_count = 0
|
| 33 |
|
| 34 |
for i in range(attentions.shape[-1]):
|