Spaces:
Running
on
T4
Running
on
T4
AngelinaZanardi
commited on
Commit
•
3357009
1
Parent(s):
a1dcaea
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import time
|
2 |
import os
|
3 |
import re
|
|
|
4 |
|
5 |
import torch
|
6 |
import torchaudio
|
@@ -20,6 +21,8 @@ import yt_dlp # Added import for yt-dlp
|
|
20 |
MODEL_NAME = "NbAiLab/nb-whisper-large"
|
21 |
lang = "no"
|
22 |
|
|
|
|
|
23 |
#logo_path = os.path.join(os.path.dirname(__file__), "Logo.png")
|
24 |
|
25 |
max_audio_length= 30 * 60
|
@@ -131,7 +134,7 @@ demo = gr.Blocks()
|
|
131 |
|
132 |
with demo:
|
133 |
with gr.Column():
|
134 |
-
gr.HTML("<img src='
|
135 |
with gr.Column(scale=8):
|
136 |
# Use Markdown for title and description
|
137 |
gr.Markdown(
|
|
|
1 |
import time
|
2 |
import os
|
3 |
import re
|
4 |
+
import base64
|
5 |
|
6 |
import torch
|
7 |
import torchaudio
|
|
|
21 |
MODEL_NAME = "NbAiLab/nb-whisper-large"
|
22 |
lang = "no"
|
23 |
|
24 |
+
with open("Logonew.png", "rb") as img_file:
|
25 |
+
base64_image = base64.b64encode(img_file.read()).decode('utf-8')
|
26 |
#logo_path = os.path.join(os.path.dirname(__file__), "Logo.png")
|
27 |
|
28 |
max_audio_length= 30 * 60
|
|
|
134 |
|
135 |
with demo:
|
136 |
with gr.Column():
|
137 |
+
gr.HTML(f"<img src='data:image/png;base64,{base64_image}' style='width:200px;'>")
|
138 |
with gr.Column(scale=8):
|
139 |
# Use Markdown for title and description
|
140 |
gr.Markdown(
|