uzdzn commited on
Commit
ff2abf3
1 Parent(s): 641c2f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,13 +3,13 @@ from inference import InferencePipeline
3
 
4
  i = InferencePipeline()
5
 
6
- def gradio_voice_conversion(audio_data):
7
  """
8
  Wrapper function to handle Gradio's audio input and pass the file path to the voice conversion function.
9
  Gradio passes audio data as a tuple: (temp file path, sample rate).
10
  """
11
  # Gradio passes audio as (temp file path, sample rate)
12
- audio_file_path = audio_data[0] # Extract the file path
13
  print(f"Here is the audio_file_path: {audio_file_path}")
14
  return i.voice_conversion(audio_file_path)
15
 
 
3
 
4
  i = InferencePipeline()
5
 
6
+ def gradio_voice_conversion(audio_file_path):
7
  """
8
  Wrapper function to handle Gradio's audio input and pass the file path to the voice conversion function.
9
  Gradio passes audio data as a tuple: (temp file path, sample rate).
10
  """
11
  # Gradio passes audio as (temp file path, sample rate)
12
+ #audio_file_path = audio_data[0] # Extract the file path
13
  print(f"Here is the audio_file_path: {audio_file_path}")
14
  return i.voice_conversion(audio_file_path)
15