Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,15 @@ import gradio as gr
|
|
2 |
import numpy as np
|
3 |
import runpod
|
4 |
|
|
|
|
|
|
|
|
|
5 |
def process_transcribe(file):
|
6 |
audio_nparray = file[1]
|
7 |
my_list = audio_nparray.tolist()
|
8 |
|
9 |
-
endpoint = runpod.Endpoint(
|
10 |
|
11 |
run_request = endpoint.run_sync(
|
12 |
{"audio_list": my_list}
|
|
|
2 |
import numpy as np
|
3 |
import runpod
|
4 |
|
5 |
+
RUNPOD_API = os.environ.get("RUNPOD_API")
|
6 |
+
RUNPOD_ENDPOINT = os.environ.get("RUNPOD_ENDPOINT")
|
7 |
+
runpod.api = RUNPOD_API
|
8 |
+
|
9 |
def process_transcribe(file):
|
10 |
audio_nparray = file[1]
|
11 |
my_list = audio_nparray.tolist()
|
12 |
|
13 |
+
endpoint = runpod.Endpoint(RUNPOD_ENDPOINT)
|
14 |
|
15 |
run_request = endpoint.run_sync(
|
16 |
{"audio_list": my_list}
|