Spaces:
Paused
Paused
Hanzo Dev
commited on
Commit
·
205f509
1
Parent(s):
435c70a
Add Inter font and zenlm logo branding
Browse files
app.py
CHANGED
|
@@ -336,12 +336,45 @@ def train_model(
|
|
| 336 |
import traceback
|
| 337 |
yield from log(f"\n{traceback.format_exc()}")
|
| 338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
# Build Gradio Interface
|
| 340 |
-
with gr.Blocks(title="Zen Training Space", theme=gr.themes.Soft()) as demo:
|
| 341 |
-
gr.
|
| 342 |
-
|
| 343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
|
|
|
|
| 345 |
Train any Zen model with any dataset combination from HuggingFace.
|
| 346 |
All datasets are loaded directly from HF - no local storage needed!
|
| 347 |
""")
|
|
|
|
| 336 |
import traceback
|
| 337 |
yield from log(f"\n{traceback.format_exc()}")
|
| 338 |
|
| 339 |
+
# Custom CSS for Inter font and branding
|
| 340 |
+
custom_css = """
|
| 341 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
| 342 |
+
|
| 343 |
+
* {
|
| 344 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
.logo-header {
|
| 348 |
+
display: flex;
|
| 349 |
+
align-items: center;
|
| 350 |
+
gap: 16px;
|
| 351 |
+
margin-bottom: 24px;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.logo-header img {
|
| 355 |
+
height: 48px;
|
| 356 |
+
width: auto;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
h1, h2, h3, h4 {
|
| 360 |
+
font-weight: 600 !important;
|
| 361 |
+
}
|
| 362 |
+
"""
|
| 363 |
+
|
| 364 |
# Build Gradio Interface
|
| 365 |
+
with gr.Blocks(title="Zen Training Space", css=custom_css, theme=gr.themes.Soft()) as demo:
|
| 366 |
+
with gr.Row(elem_classes="logo-header"):
|
| 367 |
+
gr.HTML("""
|
| 368 |
+
<div style="display: flex; align-items: center; gap: 16px;">
|
| 369 |
+
<img src="https://zenlm.org/logo.png" alt="Zen LM" style="height: 48px; width: auto;">
|
| 370 |
+
<div>
|
| 371 |
+
<h1 style="margin: 0; font-size: 28px; font-weight: 600;">Zen Training Space</h1>
|
| 372 |
+
<p style="margin: 0; color: #666; font-size: 16px;">Unified Training Platform for All Zen Models</p>
|
| 373 |
+
</div>
|
| 374 |
+
</div>
|
| 375 |
+
""")
|
| 376 |
|
| 377 |
+
gr.Markdown("""
|
| 378 |
Train any Zen model with any dataset combination from HuggingFace.
|
| 379 |
All datasets are loaded directly from HF - no local storage needed!
|
| 380 |
""")
|