Update handler.py
Browse files- 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) //
|
49 |
-
# sample["array"] = sample["array"][: len(sample["array"]) //
|
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
|