Spaces:
Running on Zero
Running on Zero
Upload app.py
Browse files
app.py
CHANGED
|
@@ -4788,117 +4788,121 @@ CSS = """
|
|
| 4788 |
}
|
| 4789 |
|
| 4790 |
|
| 4791 |
-
/*
|
| 4792 |
-
.studio-hero {
|
| 4793 |
-
--studio-ink: #
|
| 4794 |
-
--studio-muted: #
|
| 4795 |
-
--studio-accent: #
|
| 4796 |
-
color: var(--studio-ink);
|
| 4797 |
font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
|
| 4798 |
-
border: 1px solid
|
| 4799 |
border-radius: 22px;
|
| 4800 |
padding: 24px 28px 18px;
|
| 4801 |
margin-bottom: 12px;
|
| 4802 |
-
background:
|
| 4803 |
-
|
| 4804 |
-
box-shadow: 0 12px 30px rgba(25, 15, 52, .17);
|
| 4805 |
overflow-wrap: anywhere;
|
| 4806 |
}
|
| 4807 |
-
|
| 4808 |
-
|
| 4809 |
-
|
| 4810 |
-
border-color: rgba(248, 181, 211, .26);
|
| 4811 |
-
background: radial-gradient(ellipse at 95% 0%, #72264d 0%, transparent 58%),
|
| 4812 |
-
linear-gradient(135deg, #1c172c, #321d38);
|
| 4813 |
-
}
|
| 4814 |
-
.studio-hero * { box-sizing: border-box; }
|
| 4815 |
-
.studio-hero .studio-masthead {
|
| 4816 |
display: flex; align-items: center; justify-content: space-between;
|
| 4817 |
flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
|
| 4818 |
}
|
| 4819 |
-
.studio-hero .studio-eyebrow {
|
| 4820 |
-
color: var(--studio-accent); font-size:
|
| 4821 |
-
letter-spacing: .
|
| 4822 |
}
|
| 4823 |
-
.studio-hero .studio-release {
|
| 4824 |
-
font-size:
|
| 4825 |
-
border: 1px solid
|
| 4826 |
}
|
| 4827 |
-
.studio-hero h1 {
|
| 4828 |
-
margin: 0; color: var(--studio-ink); font-weight: 700;
|
| 4829 |
font-size: clamp(27px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.045em;
|
| 4830 |
}
|
| 4831 |
-
.studio-hero h1 span { color: var(--studio-accent); font-weight: 500; }
|
| 4832 |
-
.studio-hero .studio-lede {
|
| 4833 |
-
color: var(--studio-muted); font-size:
|
| 4834 |
}
|
| 4835 |
-
.studio-hero .studio-highlights {
|
| 4836 |
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 4837 |
gap: 12px; margin-top: 20px;
|
| 4838 |
}
|
| 4839 |
-
.studio-hero .studio-card {
|
| 4840 |
-
min-width: 0; border: 1px solid
|
| 4841 |
-
padding: 15px 16px; background:
|
| 4842 |
}
|
| 4843 |
-
.studio-hero .studio-card-top {
|
| 4844 |
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
| 4845 |
}
|
| 4846 |
-
.studio-hero svg { width: 23px; height: 23px; color: var(--studio-accent); flex-shrink: 0; }
|
| 4847 |
-
.studio-hero .studio-badge {
|
| 4848 |
-
font-size:
|
| 4849 |
-
color: var(--studio-accent); background:
|
| 4850 |
border-radius: 6px; padding: 4px 7px;
|
| 4851 |
}
|
| 4852 |
-
.studio-hero h2 { margin: 11px 0 5px; color: var(--studio-ink); font-size:
|
| 4853 |
-
.studio-hero .studio-card p, .studio-hero .studio-tool p {
|
| 4854 |
-
color: var(--studio-muted); font-size:
|
| 4855 |
}
|
| 4856 |
-
.studio-hero .studio-toolbox {
|
| 4857 |
-
margin-top: 12px; border: 1px solid
|
| 4858 |
-
background:
|
| 4859 |
}
|
| 4860 |
-
.studio-hero summary {
|
| 4861 |
-
padding: 12px 16px; cursor: pointer; color: var(--studio-ink);
|
| 4862 |
-
font-size:
|
| 4863 |
}
|
| 4864 |
-
.studio-hero summary::marker { color: var(--studio-accent); }
|
| 4865 |
-
.studio-hero summary span { color: var(--studio-muted); font-size:
|
| 4866 |
-
.studio-hero summary:hover { background:
|
| 4867 |
-
.studio-hero summary:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 3px; border-radius: 10px; }
|
| 4868 |
-
.studio-hero .studio-tools {
|
| 4869 |
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 4870 |
padding: 0 16px 16px; gap: 16px;
|
| 4871 |
}
|
| 4872 |
-
.studio-hero .studio-tool { border-top: 1px solid
|
| 4873 |
-
.studio-hero h3 { color: var(--studio-ink); font-size:
|
| 4874 |
-
.studio-hero .studio-start {
|
| 4875 |
display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px;
|
| 4876 |
-
color: var(--studio-muted); font-size:
|
| 4877 |
}
|
| 4878 |
-
.studio-hero .studio-start b { color: var(--studio-accent); }
|
| 4879 |
-
.studio-hero .policy { margin-top: 10px; font-size:
|
| 4880 |
-
.studio-mode-hint { font-size:
|
| 4881 |
@media (max-width: 700px) {
|
| 4882 |
-
.studio-hero { padding: 18px 16px 15px; border-radius: 16px; }
|
| 4883 |
-
.studio-hero .studio-highlights { grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
|
| 4884 |
-
.studio-hero .studio-card {
|
| 4885 |
display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3px 12px; padding: 12px;
|
| 4886 |
}
|
| 4887 |
-
.studio-hero .studio-card-top { grid-row: span 2; flex-direction: column; justify-content: center; gap: 7px; }
|
| 4888 |
-
.studio-hero h2 { margin: 0; font-size: 14px; }
|
| 4889 |
-
.studio-hero .studio-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 4890 |
-
.studio-hero summary span { display: block; margin: 3px 0 0; }
|
| 4891 |
}
|
| 4892 |
@media (max-width: 380px) {
|
| 4893 |
-
.studio-hero .studio-card { grid-template-columns:
|
| 4894 |
-
.studio-hero .studio-badge { font-size:
|
| 4895 |
-
.studio-hero .studio-tools { grid-template-columns: 1fr; }
|
| 4896 |
}
|
| 4897 |
@media (prefers-reduced-motion: reduce) {
|
| 4898 |
.scene-bar-live, .status-run.scene-live { animation: none !important; }
|
| 4899 |
.scene-bar-done { transition: none !important; }
|
| 4900 |
}
|
| 4901 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4902 |
|
| 4903 |
.panel {
|
| 4904 |
border-radius: 16px !important;
|
|
@@ -5084,6 +5088,16 @@ label > span { font-weight: 600 !important; }
|
|
| 5084 |
#lora-auto, #lora-ai { min-height: 40px !important; border-radius: 12px !important; font-weight: 600 !important; }
|
| 5085 |
|
| 5086 |
footer { display: none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5087 |
"""
|
| 5088 |
|
| 5089 |
HERO = """
|
|
|
|
| 4788 |
}
|
| 4789 |
|
| 4790 |
|
| 4791 |
+
/* Wan banner: solid light surfaces, dark ink, explicit text contrast. */
|
| 4792 |
+
#hero.studio-hero {
|
| 4793 |
+
--studio-ink: #17233a;
|
| 4794 |
+
--studio-muted: #334155;
|
| 4795 |
+
--studio-accent: #1e40af;
|
| 4796 |
+
color: var(--studio-ink) !important;
|
| 4797 |
font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
|
| 4798 |
+
border: 1px solid #b8c5d6;
|
| 4799 |
border-radius: 22px;
|
| 4800 |
padding: 24px 28px 18px;
|
| 4801 |
margin-bottom: 12px;
|
| 4802 |
+
background: #f4f7fb !important;
|
| 4803 |
+
box-shadow: 0 6px 20px rgba(23, 35, 58, .08);
|
|
|
|
| 4804 |
overflow-wrap: anywhere;
|
| 4805 |
}
|
| 4806 |
+
|
| 4807 |
+
#hero.studio-hero * { box-sizing: border-box; }
|
| 4808 |
+
#hero.studio-hero .studio-masthead {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4809 |
display: flex; align-items: center; justify-content: space-between;
|
| 4810 |
flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
|
| 4811 |
}
|
| 4812 |
+
#hero.studio-hero .studio-eyebrow {
|
| 4813 |
+
color: var(--studio-accent) !important; font-size: 13px; font-weight: 700;
|
| 4814 |
+
letter-spacing: .08em; text-transform: uppercase;
|
| 4815 |
}
|
| 4816 |
+
#hero.studio-hero .studio-release {
|
| 4817 |
+
font-size: 13px; font-weight: 600; color: var(--studio-muted) !important;
|
| 4818 |
+
border: 1px solid #b8c5d6; border-radius: 999px; padding: 4px 10px;
|
| 4819 |
}
|
| 4820 |
+
#hero.studio-hero h1 {
|
| 4821 |
+
margin: 0; color: var(--studio-ink) !important; font-weight: 700;
|
| 4822 |
font-size: clamp(27px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.045em;
|
| 4823 |
}
|
| 4824 |
+
#hero.studio-hero h1 span { color: var(--studio-accent) !important; font-weight: 500; }
|
| 4825 |
+
#hero.studio-hero .studio-lede {
|
| 4826 |
+
color: var(--studio-muted) !important; font-size: 16px; line-height: 1.65; margin: 8px 0 0;
|
| 4827 |
}
|
| 4828 |
+
#hero.studio-hero .studio-highlights {
|
| 4829 |
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 4830 |
gap: 12px; margin-top: 20px;
|
| 4831 |
}
|
| 4832 |
+
#hero.studio-hero .studio-card {
|
| 4833 |
+
min-width: 0; border: 1px solid #c3cedd; border-radius: 14px;
|
| 4834 |
+
padding: 15px 16px; background: #ffffff !important;
|
| 4835 |
}
|
| 4836 |
+
#hero.studio-hero .studio-card-top {
|
| 4837 |
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
| 4838 |
}
|
| 4839 |
+
#hero.studio-hero svg { width: 23px; height: 23px; color: var(--studio-accent) !important; flex-shrink: 0; }
|
| 4840 |
+
#hero.studio-hero .studio-badge {
|
| 4841 |
+
font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
|
| 4842 |
+
color: var(--studio-accent) !important; background: #e8efff !important;
|
| 4843 |
border-radius: 6px; padding: 4px 7px;
|
| 4844 |
}
|
| 4845 |
+
#hero.studio-hero h2 { margin: 11px 0 5px; color: var(--studio-ink) !important; font-size: 18px; line-height: 1.4; font-weight: 600; }
|
| 4846 |
+
#hero.studio-hero .studio-card p, #hero.studio-hero .studio-tool p {
|
| 4847 |
+
color: var(--studio-muted) !important; font-size: 14px; line-height: 1.6; margin: 0;
|
| 4848 |
}
|
| 4849 |
+
#hero.studio-hero .studio-toolbox {
|
| 4850 |
+
margin-top: 12px; border: 1px solid #c3cedd; border-radius: 12px;
|
| 4851 |
+
background: #ffffff !important;
|
| 4852 |
}
|
| 4853 |
+
#hero.studio-hero summary {
|
| 4854 |
+
padding: 12px 16px; cursor: pointer; color: var(--studio-ink) !important;
|
| 4855 |
+
font-size: 14px; line-height: 1.5; font-weight: 600;
|
| 4856 |
}
|
| 4857 |
+
#hero.studio-hero summary::marker { color: var(--studio-accent) !important; }
|
| 4858 |
+
#hero.studio-hero summary span { color: var(--studio-muted) !important; font-size: 14px; font-weight: 400; margin-left: 12px; }
|
| 4859 |
+
#hero.studio-hero summary:hover { background: #e8efff !important; border-radius: 12px; }
|
| 4860 |
+
#hero.studio-hero summary:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 3px; border-radius: 10px; }
|
| 4861 |
+
#hero.studio-hero .studio-tools {
|
| 4862 |
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 4863 |
padding: 0 16px 16px; gap: 16px;
|
| 4864 |
}
|
| 4865 |
+
#hero.studio-hero .studio-tool { border-top: 1px solid #c3cedd; padding-top: 12px; }
|
| 4866 |
+
#hero.studio-hero h3 { color: var(--studio-ink) !important; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
|
| 4867 |
+
#hero.studio-hero .studio-start {
|
| 4868 |
display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px;
|
| 4869 |
+
color: var(--studio-muted) !important; font-size: 14px; line-height: 1.6;
|
| 4870 |
}
|
| 4871 |
+
#hero.studio-hero .studio-start b { color: var(--studio-accent) !important; }
|
| 4872 |
+
#hero.studio-hero .policy { margin-top: 10px; font-size: 14px; color: var(--studio-muted) !important; }
|
| 4873 |
+
.studio-mode-hint { font-size: 14px !important; color: var(--body-text-color) !important; }
|
| 4874 |
@media (max-width: 700px) {
|
| 4875 |
+
#hero.studio-hero { padding: 18px 16px 15px; border-radius: 16px; }
|
| 4876 |
+
#hero.studio-hero .studio-highlights { grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
|
| 4877 |
+
#hero.studio-hero .studio-card {
|
| 4878 |
display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3px 12px; padding: 12px;
|
| 4879 |
}
|
| 4880 |
+
#hero.studio-hero .studio-card-top { grid-row: span 2; flex-direction: column; justify-content: center; gap: 7px; }
|
| 4881 |
+
#hero.studio-hero h2 { margin: 0; font-size: 14px; }
|
| 4882 |
+
#hero.studio-hero .studio-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 4883 |
+
#hero.studio-hero summary span { display: block; margin: 3px 0 0; }
|
| 4884 |
}
|
| 4885 |
@media (max-width: 380px) {
|
| 4886 |
+
#hero.studio-hero .studio-card { grid-template-columns: 86px minmax(0, 1fr); gap: 3px 9px; }
|
| 4887 |
+
#hero.studio-hero .studio-badge { font-size: 12px; padding: 3px 5px; }
|
| 4888 |
+
#hero.studio-hero .studio-tools { grid-template-columns: 1fr; }
|
| 4889 |
}
|
| 4890 |
@media (prefers-reduced-motion: reduce) {
|
| 4891 |
.scene-bar-live, .status-run.scene-live { animation: none !important; }
|
| 4892 |
.scene-bar-done { transition: none !important; }
|
| 4893 |
}
|
| 4894 |
|
| 4895 |
+
#hero.studio-hero p, #hero.studio-hero span, #hero.studio-hero h1,
|
| 4896 |
+
#hero.studio-hero h2, #hero.studio-hero h3, #hero.studio-hero summary {
|
| 4897 |
+
opacity: 1 !important;
|
| 4898 |
+
}
|
| 4899 |
+
#hero.studio-hero b, #hero.studio-hero strong { color: var(--studio-ink) !important; }
|
| 4900 |
+
#hero.studio-hero .studio-start b { color: var(--studio-accent) !important; }
|
| 4901 |
+
#hero.studio-hero .studio-start { color: var(--studio-muted) !important; }
|
| 4902 |
+
#hero.studio-hero .studio-toolbox summary { background-color: #ffffff; }
|
| 4903 |
+
#hero.studio-hero .studio-toolbox summary:hover { background-color: #e8efff !important; }
|
| 4904 |
+
#hero.studio-hero .studio-card p, #hero.studio-hero .studio-tool p { font-size: 15px; }
|
| 4905 |
+
|
| 4906 |
|
| 4907 |
.panel {
|
| 4908 |
border-radius: 16px !important;
|
|
|
|
| 5088 |
#lora-auto, #lora-ai { min-height: 40px !important; border-radius: 12px !important; font-weight: 600 !important; }
|
| 5089 |
|
| 5090 |
footer { display: none !important; }
|
| 5091 |
+
|
| 5092 |
+
/* Readable supporting text without changing the selected Gradio theme. */
|
| 5093 |
+
.status-idle, .status-ok span, .status-run span, .consent-note,
|
| 5094 |
+
.gpu-estimate sub, .search-results span, .lora-read .slot,
|
| 5095 |
+
.lora-read .what, .lora-read .head-note, .lora-read .foot {
|
| 5096 |
+
opacity: 1 !important;
|
| 5097 |
+
}
|
| 5098 |
+
.gpu-estimate sub, .search-results span, .lora-read .head-note, .lora-read .foot {
|
| 5099 |
+
font-size: 14px;
|
| 5100 |
+
}
|
| 5101 |
"""
|
| 5102 |
|
| 5103 |
HERO = """
|