Spaces:
Runtime error
Runtime error
AndrewRWilliams
commited on
Commit
•
e00ce00
1
Parent(s):
2ce8c31
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def transcribe(file):
|
|
40 |
# result = model.transcribe(file, **transcribe_options)
|
41 |
result = model.transcribe(audio)
|
42 |
|
43 |
-
file_path = pathlib.Path(file)
|
44 |
sourceName = file_path.stem[:MAX_FILE_PREFIX_LENGTH] + file_path.suffix
|
45 |
filePrefix = slugify(sourceName, allow_unicode=True)
|
46 |
|
|
|
40 |
# result = model.transcribe(file, **transcribe_options)
|
41 |
result = model.transcribe(audio)
|
42 |
|
43 |
+
file_path = pathlib.Path(file.name)
|
44 |
sourceName = file_path.stem[:MAX_FILE_PREFIX_LENGTH] + file_path.suffix
|
45 |
filePrefix = slugify(sourceName, allow_unicode=True)
|
46 |
|