imenLa commited on
Commit
42acf0b
·
verified ·
1 Parent(s): 5f338c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ notes = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
5
 
6
  def generate_tone(note, octave, duration):
7
  wav_file_path = "14763.wav"
8
- # sr, audio_data = wavfile.read(wav_file_path)
9
 
10
- return wav_file_path
11
 
12
  demo = gr.Interface(
13
  generate_tone,
 
5
 
6
  def generate_tone(note, octave, duration):
7
  wav_file_path = "14763.wav"
8
+ sr, audio_data = wavfile.read(wav_file_path)
9
 
10
+ return sr, audio_data
11
 
12
  demo = gr.Interface(
13
  generate_tone,