Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def create_vc_fn(model, hps, speaker_ids):
|
|
| 65 |
return "You need to upload an audio", None
|
| 66 |
sampling_rate, audio = input_audio
|
| 67 |
duration = audio.shape[0] / sampling_rate
|
| 68 |
-
if limitation and duration >
|
| 69 |
return "Error: Audio is too long", None
|
| 70 |
original_speaker_id = speaker_ids[original_speaker]
|
| 71 |
target_speaker_id = speaker_ids[target_speaker]
|
|
|
|
| 65 |
return "You need to upload an audio", None
|
| 66 |
sampling_rate, audio = input_audio
|
| 67 |
duration = audio.shape[0] / sampling_rate
|
| 68 |
+
if limitation and duration > 300000000000000:
|
| 69 |
return "Error: Audio is too long", None
|
| 70 |
original_speaker_id = speaker_ids[original_speaker]
|
| 71 |
target_speaker_id = speaker_ids[target_speaker]
|