Spaces:
Running
Running
app revise test
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from inference import InferencePipeline
|
| 3 |
|
| 4 |
-
i = InferencePipeline()
|
| 5 |
|
| 6 |
def gradio_voice_conversion(audio_file_path):
|
| 7 |
"""
|
|
@@ -12,7 +12,9 @@ def gradio_voice_conversion(audio_file_path):
|
|
| 12 |
#audio_file_path = audio_data[0] # Extract the file path
|
| 13 |
print(f"Here is the audio_file_path: {audio_file_path}")
|
| 14 |
#print(f"Here is the audio_file_path[0]: {audio_file_path[0]}")
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Define your Gradio interface
|
| 18 |
demo = gr.Interface(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
#from inference import InferencePipeline
|
| 3 |
|
| 4 |
+
#i = InferencePipeline()
|
| 5 |
|
| 6 |
def gradio_voice_conversion(audio_file_path):
|
| 7 |
"""
|
|
|
|
| 12 |
#audio_file_path = audio_data[0] # Extract the file path
|
| 13 |
print(f"Here is the audio_file_path: {audio_file_path}")
|
| 14 |
#print(f"Here is the audio_file_path[0]: {audio_file_path[0]}")
|
| 15 |
+
random_wav = f"/path/to/generated_audio_{int(time.time())}.wav"
|
| 16 |
+
#return i.voice_conversion(audio_file_path)
|
| 17 |
+
return random_wav
|
| 18 |
|
| 19 |
# Define your Gradio interface
|
| 20 |
demo = gr.Interface(
|