swc2 commited on
Commit
fca772e
·
1 Parent(s): 5f44ce1

app revise test

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- return i.voice_conversion(audio_file_path)
 
 
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(