dthomas84 commited on
Commit
a035bf4
·
verified ·
1 Parent(s): 3bd7898

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -45,8 +45,8 @@ class EndpointHandler:
45
 
46
  if audio is not None:
47
  audio_array = np.array(audio)
48
- audio = audio_array[: len(audio_array) // 2]
49
- # sample["array"] = sample["array"][: len(sample["array"]) // 2]
50
 
51
  if duration is not None:
52
  # Calculate max new tokens based on duration, this is a placeholder, replace with actual logic
 
45
 
46
  if audio is not None:
47
  audio_array = np.array(audio)
48
+ audio = audio_array[: len(audio_array) // 3]
49
+ # sample["array"] = sample["array"][: len(sample["array"]) // 3]
50
 
51
  if duration is not None:
52
  # Calculate max new tokens based on duration, this is a placeholder, replace with actual logic