Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ import yt_dlp # Added import for yt-dlp
|
|
19 |
MODEL_NAME = "NbAiLab/nb-whisper-large"
|
20 |
lang = "no"
|
21 |
|
22 |
-
|
23 |
|
24 |
share = (os.environ.get("SHARE", "False")[0].lower() in "ty1") or None
|
25 |
auth_token = os.environ.get("AUTH_TOKEN") or True
|
@@ -100,7 +100,7 @@ def yt_transcribe(yt_url, return_timestamps=False):
|
|
100 |
demo = gr.Blocks()
|
101 |
|
102 |
with demo:
|
103 |
-
|
104 |
mf_transcribe = gr.Interface(
|
105 |
fn=transcribe,
|
106 |
inputs=[
|
@@ -114,7 +114,7 @@ with demo:
|
|
114 |
f" modellen [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) og 🤗 Transformers til å transkribere lydfiler opp til 30 minutter."
|
115 |
),
|
116 |
allow_flagging="never",
|
117 |
-
show_submit_button=False,
|
118 |
)
|
119 |
|
120 |
# Uncomment to add the YouTube transcription interface if needed
|
|
|
19 |
MODEL_NAME = "NbAiLab/nb-whisper-large"
|
20 |
lang = "no"
|
21 |
|
22 |
+
logo_path = "/home/angelina/Nedlastinger/Screenshot 2024-10-10 at 13-30-13 Nasjonalbiblioteket — Melkeveien designkontor.png"
|
23 |
|
24 |
share = (os.environ.get("SHARE", "False")[0].lower() in "ty1") or None
|
25 |
auth_token = os.environ.get("AUTH_TOKEN") or True
|
|
|
100 |
demo = gr.Blocks()
|
101 |
|
102 |
with demo:
|
103 |
+
gr.Image(value=logo_path, label="Nasjonalbibliotek Logo", elem_id="logo") # No tool parameter for static display
|
104 |
mf_transcribe = gr.Interface(
|
105 |
fn=transcribe,
|
106 |
inputs=[
|
|
|
114 |
f" modellen [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) og 🤗 Transformers til å transkribere lydfiler opp til 30 minutter."
|
115 |
),
|
116 |
allow_flagging="never",
|
117 |
+
#show_submit_button=False,
|
118 |
)
|
119 |
|
120 |
# Uncomment to add the YouTube transcription interface if needed
|