Spaces:
Sleeping
Sleeping
jhj0517
commited on
Commit
•
41c6e91
1
Parent(s):
2903321
revert
Browse files
app.py
CHANGED
@@ -17,9 +17,9 @@ class App:
|
|
17 |
def __init__(self, args):
|
18 |
self.args = args
|
19 |
self.app = gr.Blocks(css=CSS, theme=self.args.theme)
|
20 |
-
self.whisper_inf = WhisperInference() if self.args.disable_faster_whisper else FasterWhisperInference()
|
21 |
-
#
|
22 |
-
|
23 |
print("Use Open AI Whisper implementation")
|
24 |
print(f"Device \"{self.whisper_inf.device}\" is detected")
|
25 |
cuda_version = torch.version.cuda
|
|
|
17 |
def __init__(self, args):
|
18 |
self.args = args
|
19 |
self.app = gr.Blocks(css=CSS, theme=self.args.theme)
|
20 |
+
#self.whisper_inf = WhisperInference() if self.args.disable_faster_whisper else FasterWhisperInference()
|
21 |
+
#NOTE: Faster whisper is not able to use in HuggingFace space. see more info : https://huggingface.co/spaces/jhj0517/Whisper-WebUI/discussions/1
|
22 |
+
self.whisper_inf = WhisperInference()
|
23 |
print("Use Open AI Whisper implementation")
|
24 |
print(f"Device \"{self.whisper_inf.device}\" is detected")
|
25 |
cuda_version = torch.version.cuda
|