Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,7 +162,7 @@ class VideoClassifier:
|
|
| 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):
|
|
|
|
| 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": transcribe}, return_timestamps=True)
|
| 166 |
return result["text"]
|
| 167 |
|
| 168 |
def generate_text(self, inputs, parameters=None):
|