BlahBlah314 commited on
Commit
4705045
·
verified ·
1 Parent(s): 65c6bf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -5,16 +5,17 @@ import os
5
 
6
  RUNPOD_API = os.environ.get("RUNPOD_API")
7
  RUNPOD_ENDPOINT = os.environ.get("RUNPOD_ENDPOINT")
8
- runpod.api_key = RUNPOD_API
9
 
10
  def process_transcribe(file):
11
  audio_nparray = file[1]
12
- my_list = audio_nparray.tolist()
13
-
 
14
  endpoint = runpod.Endpoint(RUNPOD_ENDPOINT)
15
 
16
  run_request = endpoint.run_sync(
17
- {"audio_list": my_list}
18
  )
19
  raw_text = run_request
20
 
 
5
 
6
  RUNPOD_API = os.environ.get("RUNPOD_API")
7
  RUNPOD_ENDPOINT = os.environ.get("RUNPOD_ENDPOINT")
8
+
9
 
10
  def process_transcribe(file):
11
  audio_nparray = file[1]
12
+ audio_list = audio_nparray.tolist()
13
+
14
+ runpod.api_key = RUNPOD_API
15
  endpoint = runpod.Endpoint(RUNPOD_ENDPOINT)
16
 
17
  run_request = endpoint.run_sync(
18
+ {"audio_list": audio_list}
19
  )
20
  raw_text = run_request
21