Spaces:
Runtime error
Runtime error
karin.brisker
commited on
Commit
·
e65d468
1
Parent(s):
c71655e
typing
Browse files- app.py +1 -1
- audio_to_transcript.py +0 -1
app.py
CHANGED
@@ -25,4 +25,4 @@ demo = gr.Interface(video_identity,
|
|
25 |
)
|
26 |
|
27 |
pipeline = Pipeline()
|
28 |
-
demo.launch()
|
|
|
25 |
)
|
26 |
|
27 |
pipeline = Pipeline()
|
28 |
+
demo.queue(max_size=15).launch(share=True, show_error=True)
|
audio_to_transcript.py
CHANGED
@@ -18,7 +18,6 @@ class TranscribeAudio:
|
|
18 |
f"Model is {'multilingual' if self.model.is_multilingual else 'English-only'} "
|
19 |
f"and has {sum(np.prod(p.shape) for p in self.model.parameters()):,} parameters."
|
20 |
)
|
21 |
-
self.options = {"max_line_width": None, "max_line_count": None, "highlight_words": True}
|
22 |
|
23 |
def transcribe(self, audio_file_path: str, language: str = "en") -> Dict:
|
24 |
log(f"Transcribing {audio_file_path} in {language}")
|
|
|
18 |
f"Model is {'multilingual' if self.model.is_multilingual else 'English-only'} "
|
19 |
f"and has {sum(np.prod(p.shape) for p in self.model.parameters()):,} parameters."
|
20 |
)
|
|
|
21 |
|
22 |
def transcribe(self, audio_file_path: str, language: str = "en") -> Dict:
|
23 |
log(f"Transcribing {audio_file_path} in {language}")
|