scdfz
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def transcribe(path, task):
|
|
61 |
if path[-3:] != 'wav':
|
62 |
subprocess.call(['ffmpeg', '-i', path, "audio.wav", '-y'])
|
63 |
path = "audio.wav"
|
64 |
-
result = model.transcribe(path)
|
65 |
segments = result["segments"]
|
66 |
print(segments)
|
67 |
with contextlib.closing(wave.open(path,'r')) as f:
|
|
|
61 |
if path[-3:] != 'wav':
|
62 |
subprocess.call(['ffmpeg', '-i', path, "audio.wav", '-y'])
|
63 |
path = "audio.wav"
|
64 |
+
result = model.transcribe(path,fp16=False)
|
65 |
segments = result["segments"]
|
66 |
print(segments)
|
67 |
with contextlib.closing(wave.open(path,'r')) as f:
|