apenasissso commited on
Commit
4953c74
1 Parent(s): 2ca4eb5

Break to 5 seconds

Browse files
Files changed (2) hide show
  1. handler.py +1 -1
  2. test_handler.py +1 -1
handler.py CHANGED
@@ -8,7 +8,7 @@ import tempfile
8
  import os
9
 
10
 
11
- def save_chunks_to_temp_files(url, chunk_length=10000): # chunk_length in milliseconds
12
  # Download the audio file from the URL
13
  response = requests.get(url)
14
  response.raise_for_status()
 
8
  import os
9
 
10
 
11
+ def save_chunks_to_temp_files(url, chunk_length=5000): # chunk_length in milliseconds
12
  # Download the audio file from the URL
13
  response = requests.get(url)
14
  response.raise_for_status()
test_handler.py CHANGED
@@ -5,7 +5,7 @@ my_handler = EndpointHandler()
5
 
6
  # prepare sample payload
7
  holiday_payload = {
8
- "inputs": "https://pl-bots-public-media.s3.amazonaws.com/14153496170_fcc9fd77-7159-4777-b008-4360bc2b5f84.mp3"
9
  }
10
 
11
  # test the handler
 
5
 
6
  # prepare sample payload
7
  holiday_payload = {
8
+ "inputs": "https://pl-bots-public-media.s3.amazonaws.com/5527999790371_8825d2c9-d87b-49c3-bf70-cb536328ba92.mp3"
9
  }
10
 
11
  # test the handler