Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ from inference import InferencePipeline
|
|
3 |
|
4 |
i = InferencePipeline()
|
5 |
|
6 |
-
def gradio_voice_conversion(
|
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 |
|