Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
41 |
|
42 |
from gpuinfo import GPUInfo
|
43 |
import gradio as gr
|
|
|
44 |
from fpdf import FPDF
|
45 |
from PIL import Image
|
46 |
|
@@ -219,14 +220,6 @@ def save_to_pdf(text, summary):
|
|
219 |
|
220 |
iface = gr.Blocks()
|
221 |
|
222 |
-
PLACEHOLDER = """
|
223 |
-
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
224 |
-
<img src=""https://huggingface.co/spaces/camparchimedes/ola_s-audioshop/blob/main/pic09w9678yhit.png" alt="" style="width: 100%; height: auto; opacity: 0.93; ">
|
225 |
-
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Switch Work | Verktæysett no.1</h1>
|
226 |
-
<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>
|
227 |
-
</div>
|
228 |
-
"""
|
229 |
-
|
230 |
with iface:
|
231 |
|
232 |
gr.Image(LOGO) # LOGO variable as string to gr.Image constructor
|
|
|
41 |
|
42 |
from gpuinfo import GPUInfo
|
43 |
import gradio as gr
|
44 |
+
import spaces
|
45 |
from fpdf import FPDF
|
46 |
from PIL import Image
|
47 |
|
|
|
220 |
|
221 |
iface = gr.Blocks()
|
222 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
with iface:
|
224 |
|
225 |
gr.Image(LOGO) # LOGO variable as string to gr.Image constructor
|