Update app.py
Browse files
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 |
-
|
9 |
|
10 |
def process_transcribe(file):
|
11 |
audio_nparray = file[1]
|
12 |
-
|
13 |
-
|
|
|
14 |
endpoint = runpod.Endpoint(RUNPOD_ENDPOINT)
|
15 |
|
16 |
run_request = endpoint.run_sync(
|
17 |
-
{"audio_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 |
|