Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,6 @@ def transcribe_audio(audio_file, chunk_length_s=30):
|
|
110 |
|
111 |
# Create attention mask
|
112 |
attention_mask = torch.ones(inputs.input_features.shape[:2], dtype=torch.long, device=device)
|
113 |
-
attention_mask[inputs.input_features == processor.pad_token_id] = 0
|
114 |
|
115 |
# ASR model inference on the chunk
|
116 |
with torch.no_grad():
|
@@ -258,8 +257,8 @@ def save_to_pdf(text, summary):
|
|
258 |
iface = gr.Blocks()
|
259 |
|
260 |
with iface:
|
261 |
-
gr.HTML('<img src="https://huggingface.co/spaces/camparchimedes/
|
262 |
-
gr.Markdown("
|
263 |
|
264 |
with gr.Tabs():
|
265 |
with gr.TabItem("Transcription"):
|
|
|
110 |
|
111 |
# Create attention mask
|
112 |
attention_mask = torch.ones(inputs.input_features.shape[:2], dtype=torch.long, device=device)
|
|
|
113 |
|
114 |
# ASR model inference on the chunk
|
115 |
with torch.no_grad():
|
|
|
257 |
iface = gr.Blocks()
|
258 |
|
259 |
with iface:
|
260 |
+
gr.HTML('<img src="https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/resolve/main/banner_trans.png" width="100%" height="auto"/>')
|
261 |
+
gr.Markdown("**Switch Work's JoJo-versjon som webapp for transkribering av lydfiler til norsk skrift. Språkmodell: NbAiLab/nb-whisper-large, Ekstra: oppsummering, pdf-download**")
|
262 |
|
263 |
with gr.Tabs():
|
264 |
with gr.TabItem("Transcription"):
|