capstonedubtrack commited on
Commit
0db5ebc
1 Parent(s): 12620a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def inference(language,speed,voice,video ):
64
  tts.save('input_audio.wav')
65
  os.system('mv ./Wav2Lip/* .')
66
  os.system('pip install -r requirements.txt')
67
- os.system("python inference.py --checkpoint_path ./wav2lip_gan.pth --video {} --input_audio.wav {}".format(video))
68
  return "./results/result_voice.mp4"
69
 
70
  iface = gr.Interface(inference, inputs=[gr.inputs.Radio(["Tamil", "Hindi", "Bengali", "Telugu"], label = "Enter language to translate to"), gr.inputs.Radio(["Slow", "Fast"], label = "Enter speaking speed"), gr.inputs.Radio(["Male", "Female"], label = "Enter preferred voice"), gr.inputs.Video(type="mp4", source="upload", label="Video to be Translated", optional=False)], outputs=["video"], title=title, description=description, article=article, enable_queue=True)
 
64
  tts.save('input_audio.wav')
65
  os.system('mv ./Wav2Lip/* .')
66
  os.system('pip install -r requirements.txt')
67
+ os.system("python inference.py --checkpoint_path ./wav2lip_gan.pth --video {} --input_audio.wav".format(video))
68
  return "./results/result_voice.mp4"
69
 
70
  iface = gr.Interface(inference, inputs=[gr.inputs.Radio(["Tamil", "Hindi", "Bengali", "Telugu"], label = "Enter language to translate to"), gr.inputs.Radio(["Slow", "Fast"], label = "Enter speaking speed"), gr.inputs.Radio(["Male", "Female"], label = "Enter preferred voice"), gr.inputs.Video(type="mp4", source="upload", label="Video to be Translated", optional=False)], outputs=["video"], title=title, description=description, article=article, enable_queue=True)