Spaces:
Running
Running
zach
commited on
Commit
·
26f103a
1
Parent(s):
d5a40dd
Add github link in header
Browse files- src/app.py +14 -3
- src/assets/styles.css +29 -0
src/app.py
CHANGED
@@ -345,7 +345,18 @@ class App:
|
|
345 |
"""
|
346 |
with gr.Row():
|
347 |
with gr.Column(scale=5):
|
348 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
randomize_all_button = gr.Button("🎲 Randomize All", variant="primary", scale=1)
|
350 |
instructions = gr.HTML(
|
351 |
"""
|
@@ -371,7 +382,7 @@ class App:
|
|
371 |
</ol>
|
372 |
"""
|
373 |
)
|
374 |
-
return (
|
375 |
|
376 |
def _build_input_section(self) -> Tuple[gr.Dropdown, gr.Textbox, gr.Button, gr.Textbox, gr.Button]:
|
377 |
"""
|
@@ -474,7 +485,7 @@ class App:
|
|
474 |
# --- UI components ---
|
475 |
|
476 |
(
|
477 |
-
|
478 |
randomize_all_button,
|
479 |
instructions,
|
480 |
) = self._build_heading_section()
|
|
|
345 |
"""
|
346 |
with gr.Row():
|
347 |
with gr.Column(scale=5):
|
348 |
+
title_with_github_link = gr.HTML(
|
349 |
+
"""
|
350 |
+
<div class="title-container">
|
351 |
+
<h1>Expressive TTS Arena</h1>
|
352 |
+
<a
|
353 |
+
href="https://github.com/HumeAI/expressive-tts-arena"
|
354 |
+
target="_blank"
|
355 |
+
id="github-link"
|
356 |
+
></a>
|
357 |
+
</div>
|
358 |
+
"""
|
359 |
+
)
|
360 |
randomize_all_button = gr.Button("🎲 Randomize All", variant="primary", scale=1)
|
361 |
instructions = gr.HTML(
|
362 |
"""
|
|
|
382 |
</ol>
|
383 |
"""
|
384 |
)
|
385 |
+
return (title_with_github_link, randomize_all_button, instructions)
|
386 |
|
387 |
def _build_input_section(self) -> Tuple[gr.Dropdown, gr.Textbox, gr.Button, gr.Textbox, gr.Button]:
|
388 |
"""
|
|
|
485 |
# --- UI components ---
|
486 |
|
487 |
(
|
488 |
+
title_with_github_link,
|
489 |
randomize_all_button,
|
490 |
instructions,
|
491 |
) = self._build_heading_section()
|
src/assets/styles.css
CHANGED
@@ -3,6 +3,35 @@ footer.svelte-1byz9vf {
|
|
3 |
display: none !important;
|
4 |
}
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
#vote-result-a textarea,
|
7 |
#vote-result-b textarea {
|
8 |
font-size: 16px !important;
|
|
|
3 |
display: none !important;
|
4 |
}
|
5 |
|
6 |
+
.html-container.svelte-phx28p.padding {
|
7 |
+
padding: 0px !important;
|
8 |
+
}
|
9 |
+
|
10 |
+
.title-container {
|
11 |
+
display: flex;
|
12 |
+
align-items: center;
|
13 |
+
height: 40px !important;
|
14 |
+
}
|
15 |
+
|
16 |
+
.title-container h1 {
|
17 |
+
margin: 0;
|
18 |
+
margin-right: auto;
|
19 |
+
}
|
20 |
+
|
21 |
+
#github-link {
|
22 |
+
display: inline-block;
|
23 |
+
width: 32px;
|
24 |
+
height: 32px;
|
25 |
+
background-image: url('https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png');
|
26 |
+
background-size: contain;
|
27 |
+
background-repeat: no-repeat;
|
28 |
+
transition: transform 0.2s ease-in-out;
|
29 |
+
}
|
30 |
+
|
31 |
+
#github-link:hover {
|
32 |
+
transform: scale(1.1);
|
33 |
+
}
|
34 |
+
|
35 |
#vote-result-a textarea,
|
36 |
#vote-result-b textarea {
|
37 |
font-size: 16px !important;
|