artificialguybr commited on
Commit
5a957c1
1 Parent(s): 4887ae6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -5,7 +5,11 @@ from faster_whisper import WhisperModel
5
  import json
6
  import tempfile
7
  import os # Importando o m贸dulo os
 
8
 
 
 
 
9
  # Carregar mapeamento de idiomas
10
  with open('language_codes.json', 'r') as f:
11
  lang_codes = json.load(f)
 
5
  import json
6
  import tempfile
7
  import os # Importando o m贸dulo os
8
+ import ffmpeg
9
 
10
+ ZipFile("ffmpeg.zip").extractall()
11
+ st = os.stat('ffmpeg')
12
+ os.chmod('ffmpeg', st.st_mode | stat.S_IEXEC)
13
  # Carregar mapeamento de idiomas
14
  with open('language_codes.json', 'r') as f:
15
  lang_codes = json.load(f)