AlexK-PL commited on
Commit
3ed419f
·
1 Parent(s): a94c592

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -14,6 +14,12 @@ import numpy as np
14
  from matplotlib import pyplot as plt
15
  from matplotlib import gridspec
16
 
 
 
 
 
 
 
17
  torch.manual_seed(1234)
18
  MAX_WAV_VALUE = 32768.0
19
 
@@ -55,8 +61,6 @@ def plot_spec_align(mel, align):
55
  ax_align.imshow(align)
56
  ax_align.set_title('Alignment', fontsize=12)
57
 
58
- plt.subplots_adjust(hspace=0.15)
59
-
60
  return fig_mel # fig_align
61
 
62
 
 
14
  from matplotlib import pyplot as plt
15
  from matplotlib import gridspec
16
 
17
+ # Adjust vertical spacing between subplots
18
+ plt.subplots_adjust(hspace=0.15) # You can adjust the value as needed
19
+
20
+ # Adjust the white space (margins) around the plot
21
+ plt.tight_layout(pad=0.5) # You can adjust the pad value as needed
22
+
23
  torch.manual_seed(1234)
24
  MAX_WAV_VALUE = 32768.0
25
 
 
61
  ax_align.imshow(align)
62
  ax_align.set_title('Alignment', fontsize=12)
63
 
 
 
64
  return fig_mel # fig_align
65
 
66