Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def visualize_one_hot_encoded_sequence(tensor, sentence, col_labels, cmap='BuGn'
|
|
| 45 |
ax.set_yticks(np.arange(-0.5, tensor.shape[0], 1), minor=True)
|
| 46 |
|
| 47 |
# Turn on the grid for minor ticks (i.e., between the cells)
|
| 48 |
-
ax.grid(which='minor', color='darkgrey', linestyle='-', linewidth=
|
| 49 |
ax.tick_params(which='minor', size=0) # Hide minor tick marks
|
| 50 |
|
| 51 |
# Display the heatmap
|
|
|
|
| 45 |
ax.set_yticks(np.arange(-0.5, tensor.shape[0], 1), minor=True)
|
| 46 |
|
| 47 |
# Turn on the grid for minor ticks (i.e., between the cells)
|
| 48 |
+
ax.grid(which='minor', color='darkgrey', linestyle='-', linewidth=1)
|
| 49 |
ax.tick_params(which='minor', size=0) # Hide minor tick marks
|
| 50 |
|
| 51 |
# Display the heatmap
|