Update app.py
Browse files
app.py
CHANGED
|
@@ -58,10 +58,6 @@ def create_vc_fn(model, hps, speaker_ids):
|
|
| 58 |
return "You need to upload an audio", None
|
| 59 |
sampling_rate, audio = input_audio
|
| 60 |
duration = audio.shape[0] / sampling_rate
|
| 61 |
-
if limitation and duration > 3000:
|
| 62 |
-
return "Error: Audio is too long", None
|
| 63 |
-
original_speaker_id = speaker_ids[original_speaker]
|
| 64 |
-
target_speaker_id = speaker_ids[target_speaker]
|
| 65 |
|
| 66 |
audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
|
| 67 |
if len(audio.shape) > 1:
|
|
|
|
| 58 |
return "You need to upload an audio", None
|
| 59 |
sampling_rate, audio = input_audio
|
| 60 |
duration = audio.shape[0] / sampling_rate
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
|
| 63 |
if len(audio.shape) > 1:
|