Spaces:
Build error
Build error
juancopi81
commited on
Commit
•
195e557
1
Parent(s):
beab381
Add filepath
Browse files- transcriber.py +2 -0
transcriber.py
CHANGED
@@ -5,6 +5,8 @@ class Transcriber:
|
|
5 |
self.pipe = pipe
|
6 |
|
7 |
def transcribe(self, file_path: str = "yt_audio.mp3") -> str:
|
|
|
|
|
8 |
try:
|
9 |
transcription = self.pipe(file_path)["text"]
|
10 |
return transcription
|
|
|
5 |
self.pipe = pipe
|
6 |
|
7 |
def transcribe(self, file_path: str = "yt_audio.mp3") -> str:
|
8 |
+
print(self.pipe)
|
9 |
+
print("Audo file at:", file_path)
|
10 |
try:
|
11 |
transcription = self.pipe(file_path)["text"]
|
12 |
return transcription
|