meraih commited on
Commit
2e3bee2
·
1 Parent(s): 84859a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 > 30:
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]