NonameSsSs commited on
Commit
d1d5004
·
verified ·
1 Parent(s): 752a556

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -10,6 +10,8 @@ def generate_tone(note, octave, duration):
10
  duration = int(duration)
11
  audio = np.linspace(0, duration, duration * sr)
12
  audio = (20000 * np.sin(audio * (2 * np.pi * frequency))).astype(np.int16)
 
 
13
 
14
  demo = gr.Interface(
15
  generate_tone,
 
10
  duration = int(duration)
11
  audio = np.linspace(0, duration, duration * sr)
12
  audio = (20000 * np.sin(audio * (2 * np.pi * frequency))).astype(np.int16)
13
+ return sr, audio
14
+
15
 
16
  demo = gr.Interface(
17
  generate_tone,