Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -133,8 +133,28 @@ def yt_transcribe(yt_url, return_timestamps=False):
|
|
133 |
demo = gr.Blocks()
|
134 |
|
135 |
with demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
with gr.Column():
|
137 |
-
gr.HTML(f"<img src='
|
138 |
with gr.Column(scale=8):
|
139 |
# Use Markdown for title and description
|
140 |
gr.Markdown(
|
@@ -154,7 +174,7 @@ with demo:
|
|
154 |
|
155 |
description=(
|
156 |
"Transkriber lange lydopptak fra mikrofon eller lydfiler med et enkelt klikk! Demoen bruker den fintunede"
|
157 |
-
f" modellen [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) og 🤗 Transformers til å transkribere lydfiler opp til 30 minutter."
|
158 |
),
|
159 |
allow_flagging="never",
|
160 |
#show_submit_button=False,
|
@@ -179,4 +199,4 @@ with demo:
|
|
179 |
# )
|
180 |
|
181 |
# Start demoen uten faner
|
182 |
-
demo.launch(share=share, show_api=False,allowed_paths=["
|
|
|
133 |
demo = gr.Blocks()
|
134 |
|
135 |
with demo:
|
136 |
+
gr.HTML("""
|
137 |
+
<style>
|
138 |
+
.gr-button {
|
139 |
+
background-color: #4CAF50; /* Green background */
|
140 |
+
color: white; /* White text */
|
141 |
+
border: none;
|
142 |
+
padding: 10px 20px;
|
143 |
+
text-align: center;
|
144 |
+
text-decoration: none;
|
145 |
+
display: inline-block;
|
146 |
+
font-size: 16px;
|
147 |
+
margin: 4px 2px;
|
148 |
+
cursor: pointer;
|
149 |
+
border-radius: 4px;
|
150 |
+
}
|
151 |
+
.gr-button:hover {
|
152 |
+
background-color: #45a049; /* Darker green on hover */
|
153 |
+
}
|
154 |
+
</style>
|
155 |
+
""")
|
156 |
with gr.Column():
|
157 |
+
gr.HTML(f"<img src='file/Logonew.png' style='width:200px;'>")
|
158 |
with gr.Column(scale=8):
|
159 |
# Use Markdown for title and description
|
160 |
gr.Markdown(
|
|
|
174 |
|
175 |
description=(
|
176 |
"Transkriber lange lydopptak fra mikrofon eller lydfiler med et enkelt klikk! Demoen bruker den fintunede"
|
177 |
+
f" modellen \n\n[{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) og 🤗 Transformers til å transkribere lydfiler opp til 30 minutter."
|
178 |
),
|
179 |
allow_flagging="never",
|
180 |
#show_submit_button=False,
|
|
|
199 |
# )
|
200 |
|
201 |
# Start demoen uten faner
|
202 |
+
demo.launch(share=share, show_api=False,allowed_paths=["Logonew.png"]).queue()
|