demomodels commited on
Commit
3f6d243
·
1 Parent(s): 0072254

Initial commit

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -41,8 +41,10 @@ def process_audio(audio_file):
41
 
42
  def process(audio):
43
  # Read audio data from the file
44
- with open(audio.name, 'rb') as f:
45
- audio_data = f.read()
 
 
46
 
47
  # Process the audio data
48
  result = pipe(audio_data)['chunks']
 
41
 
42
  def process(audio):
43
  # Read audio data from the file
44
+ # with open(audio.name, 'rb') as f:
45
+ # audio_data = f.read()
46
+ audio_data, audio_filename = audio
47
+
48
 
49
  # Process the audio data
50
  result = pipe(audio_data)['chunks']