Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 1,273 Bytes
d40e945 5d5cc81 d40e945 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
import gradio as gr
from .config import *
from .messages import *
from .ui_vote import *
from .ui_battle import *
from .ui_leaderboard import *
with gr.Blocks() as about:
gr.Markdown(ABOUT)
CSS = """
footer {visibility: hidden}
textbox {resize: none}
/* Custom scrollbar styles */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--background-fill-primary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: var(--border-color-primary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--body-text-color);
}
"""
with gr.Blocks(css=CSS, theme=gr.themes.Default(font=[gr.themes.GoogleFont("Geist"), "sans-serif"]), title="TTS Arena") as app:
gr.Markdown(DESCR)
gr.TabbedInterface([vote, battle, leaderboard, about], ['Vote', 'Battle', 'Leaderboard', 'About'])
if CITATION_TEXT:
with gr.Row():
with gr.Accordion("Citation", open=False):
gr.Markdown(f"If you use this data in your publication, please cite us!\n\nCopy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```\n\nPlease note that all generated audio clips should be assumed unsuitable for redistribution or commercial use.")
|