Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -39,14 +39,6 @@ from fpdf import FPDF
|
|
39 |
from PIL import Image
|
40 |
|
41 |
|
42 |
-
PLACEHOLDER = """
|
43 |
-
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
44 |
-
<img src=""https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/blob/main/pic09w9678yhit.png" alt="" style="width: 100%; height: auto; opacity: 0.93; ">
|
45 |
-
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Switch Work | Verktæysett no.1</h1>
|
46 |
-
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">En webapp for transkribering av lydfiler til norsk skrift. Språkmodell: NbAiLab/nb-whisper-large, Ekstra: oppsummering, pdf-download</p>
|
47 |
-
</div>
|
48 |
-
"""
|
49 |
-
|
50 |
# Suppress warnings
|
51 |
warnings.filterwarnings("ignore")
|
52 |
|
@@ -266,6 +258,14 @@ def save_to_pdf(text, summary):
|
|
266 |
|
267 |
iface = gr.Blocks()
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
with iface:
|
270 |
#gr.HTML('<img src="https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/blob/main/pic09w9678yhit.png" alt="" style="width: 100%; height: auto; opacity: 0.55; >')
|
271 |
#gr.Markdown("**Switch Work webapp for transkribering av lydfiler til norsk skrift. Språkmodell: NbAiLab/nb-whisper-large, Ekstra: oppsummering, pdf-download**")
|
|
|
39 |
from PIL import Image
|
40 |
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
# Suppress warnings
|
43 |
warnings.filterwarnings("ignore")
|
44 |
|
|
|
258 |
|
259 |
iface = gr.Blocks()
|
260 |
|
261 |
+
PLACEHOLDER = """
|
262 |
+
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
263 |
+
<img src=""https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/blob/main/pic09w9678yhit.png" alt="" style="width: 100%; height: auto; opacity: 0.93; ">
|
264 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Switch Work | Verktæysett no.1</h1>
|
265 |
+
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">En webapp for transkribering av lydfiler til norsk skrift. Språkmodell: NbAiLab/nb-whisper-large, Ekstra: oppsummering, pdf-download</p>
|
266 |
+
</div>
|
267 |
+
"""
|
268 |
+
|
269 |
with iface:
|
270 |
#gr.HTML('<img src="https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/blob/main/pic09w9678yhit.png" alt="" style="width: 100%; height: auto; opacity: 0.55; >')
|
271 |
#gr.Markdown("**Switch Work webapp for transkribering av lydfiler til norsk skrift. Språkmodell: NbAiLab/nb-whisper-large, Ekstra: oppsummering, pdf-download**")
|