clementruhm commited on
Commit
67f7fe4
·
1 Parent(s): 3ebe5da

vc_service_request.py: fix check

Browse files
Files changed (1) hide show
  1. vc_service_request.py +1 -1
vc_service_request.py CHANGED
@@ -100,7 +100,7 @@ def vc_service_request(
100
  """
101
  src = prepare_audio(source_audio)
102
  tgt = prepare_audio(target_audio)
103
- if not src or not tgt:
104
  return
105
  if len(src) >= 60 * 16000 or len(tgt) >= 30 * 16000:
106
  # input is way too long, dont return anything
 
100
  """
101
  src = prepare_audio(source_audio)
102
  tgt = prepare_audio(target_audio)
103
+ if src is None or tgt is None:
104
  return
105
  if len(src) >= 60 * 16000 or len(tgt) >= 30 * 16000:
106
  # input is way too long, dont return anything