marquesafonso commited on
Commit
0228cca
·
1 Parent(s): d0a9fdf

fix color picker rgba to hex

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,11 +21,11 @@ def extract_waveform_animation(audio_file, window_seconds, waveform_color, backg
21
  duration = librosa.get_duration(y=y, sr=sr)
22
  FPS = 1
23
  fig, ax = plt.subplots()
24
- line, = ax.plot([], [], lw=2, color=waveform_color)
25
  window_length = int(window_seconds * sr)
26
  x_vals = np.linspace(0, duration, num=len(y))
27
  ax.set_axis_off()
28
- bg_color = background_color
29
  fig.set_facecolor(bg_color)
30
 
31
  def init():
 
21
  duration = librosa.get_duration(y=y, sr=sr)
22
  FPS = 1
23
  fig, ax = plt.subplots()
24
+ line, = ax.plot([], [], lw=2, color=check_rgba(waveform_color))
25
  window_length = int(window_seconds * sr)
26
  x_vals = np.linspace(0, duration, num=len(y))
27
  ax.set_axis_off()
28
+ bg_color = check_rgba(background_color)
29
  fig.set_facecolor(bg_color)
30
 
31
  def init():