Update handler.py
Browse files- handler.py +3 -2
handler.py
CHANGED
@@ -23,13 +23,14 @@
|
|
23 |
|
24 |
from pyannote.audio import Pipeline, Audio
|
25 |
import torch
|
26 |
-
|
27 |
|
28 |
class EndpointHandler:
|
29 |
def __init__(self, path=""):
|
30 |
# initialize pretrained pipeline
|
31 |
print("-----------------------------------")
|
32 |
-
print(f"
|
|
|
33 |
print("-----------------------------------")
|
34 |
self._pipeline = Pipeline.from_pretrained(path.strip("/"))
|
35 |
HYPER_PARAMETERS = {
|
|
|
23 |
|
24 |
from pyannote.audio import Pipeline, Audio
|
25 |
import torch
|
26 |
+
import os
|
27 |
|
28 |
class EndpointHandler:
|
29 |
def __init__(self, path=""):
|
30 |
# initialize pretrained pipeline
|
31 |
print("-----------------------------------")
|
32 |
+
print(f"\nPATH: {path}\n")
|
33 |
+
print(f"\nls {path}: {os.listdir(path)}")
|
34 |
print("-----------------------------------")
|
35 |
self._pipeline = Pipeline.from_pretrained(path.strip("/"))
|
36 |
HYPER_PARAMETERS = {
|