BasToTheMax commited on
Commit
e39c272
·
1 Parent(s): 50de06b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,7 +4,10 @@ from TTS.api import TTS
4
  api = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24")
5
 
6
  def greet(source, target):
 
7
  api.voice_conversion_to_file(source_wav=source, target_wav=target, file_path="/tmp/out.wav")
 
 
8
  return "/tmp/out.wav"
9
 
10
  iface = gr.Interface(fn=greet, inputs=[gr.Audio(type="filepath"), gr.Audio(type="filepath")], outputs=gr.Audio(type="filepath"))
 
4
  api = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24")
5
 
6
  def greet(source, target):
7
+ print("adio", source, target)
8
  api.voice_conversion_to_file(source_wav=source, target_wav=target, file_path="/tmp/out.wav")
9
+ print("> Done")
10
+
11
  return "/tmp/out.wav"
12
 
13
  iface = gr.Interface(fn=greet, inputs=[gr.Audio(type="filepath"), gr.Audio(type="filepath")], outputs=gr.Audio(type="filepath"))