jhj0517 commited on
Commit
c364d35
·
1 Parent(s): 6e99075

move bug fix logic to app

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. modules/faster_whisper_inference.py +0 -2
app.py CHANGED
@@ -28,6 +28,9 @@ class App:
28
  )
29
 
30
  def init_whisper(self):
 
 
 
31
  whisper_type = self.args.whisper_type.lower().strip()
32
 
33
  if whisper_type in ["faster_whisper", "faster-whisper", "fasterwhisper"]:
 
28
  )
29
 
30
  def init_whisper(self):
31
+ # Temporal fix of the issue : https://github.com/jhj0517/Whisper-WebUI/issues/144
32
+ os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
33
+
34
  whisper_type = self.args.whisper_type.lower().strip()
35
 
36
  if whisper_type in ["faster_whisper", "faster-whisper", "fasterwhisper"]:
modules/faster_whisper_inference.py CHANGED
@@ -12,8 +12,6 @@ import gradio as gr
12
  from modules.whisper_parameter import *
13
  from modules.whisper_base import WhisperBase
14
 
15
- # Temporal fix of the issue : https://github.com/jhj0517/Whisper-WebUI/issues/144
16
- os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
17
 
18
 
19
  class FasterWhisperInference(WhisperBase):
 
12
  from modules.whisper_parameter import *
13
  from modules.whisper_base import WhisperBase
14
 
 
 
15
 
16
 
17
  class FasterWhisperInference(WhisperBase):