Spaces:
Runtime error
Runtime error
Commit
•
e9cb65b
1
Parent(s):
7845ca3
Update app.py
Browse files
app.py
CHANGED
@@ -161,8 +161,8 @@ class VideoClassifier:
|
|
161 |
|
162 |
# if not os.path.exists(audio_file):
|
163 |
# return "File does not exist. Please check the file path."
|
164 |
-
|
165 |
-
result = pipe(audiotrack, batch_size=BATCH_SIZE, generate_kwargs={"task":
|
166 |
return result["text"]
|
167 |
|
168 |
def generate_text(self, inputs, parameters=None):
|
|
|
161 |
|
162 |
# if not os.path.exists(audio_file):
|
163 |
# return "File does not exist. Please check the file path."
|
164 |
+
task="transcribe"
|
165 |
+
result = pipe(audiotrack, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)
|
166 |
return result["text"]
|
167 |
|
168 |
def generate_text(self, inputs, parameters=None):
|