drewThomasson commited on
Commit
cd428c2
·
verified ·
1 Parent(s): e185191

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,6 +3,8 @@ import torch
3
  from TTS.api import TTS
4
  import os
5
  import librosa
 
 
6
 
7
  # Get device
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
@@ -18,6 +20,7 @@ def convert_audio_to_wav(file_path):
18
  return output_path
19
 
20
  def voice_conversion(input_audio, target_voice, uploaded_target_voice):
 
21
  output_path = "output.wav"
22
 
23
  # Check if the user uploaded a target voice, otherwise use selected from examples
 
3
  from TTS.api import TTS
4
  import os
5
  import librosa
6
+ from datetime import datetime
7
+
8
 
9
  # Get device
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
20
  return output_path
21
 
22
  def voice_conversion(input_audio, target_voice, uploaded_target_voice):
23
+ print(datetime.now())
24
  output_path = "output.wav"
25
 
26
  # Check if the user uploaded a target voice, otherwise use selected from examples