Spaces:
Running
Running
adds image and title to the interface
Browse files- interface.py +27 -4
interface.py
CHANGED
|
@@ -944,11 +944,26 @@ def ui_defaults(family: str) -> Tuple[str, str, str, str]:
|
|
| 944 |
return exp, repo_short, default_desc, trackio_space_name
|
| 945 |
|
| 946 |
|
| 947 |
-
|
| 948 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 949 |
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
|
| 950 |
"""
|
| 951 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 952 |
|
| 953 |
def on_family_change(family: str):
|
| 954 |
"""Update UI when the model family changes.
|
|
@@ -1250,7 +1265,11 @@ with gr.Blocks(title="SmolLM3 / GPT-OSS Fine-tuning Pipeline") as demo:
|
|
| 1250 |
</div>
|
| 1251 |
"""
|
| 1252 |
)
|
| 1253 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1254 |
else:
|
| 1255 |
hint_html = markdown_links_to_html(duplicate_space_hint())
|
| 1256 |
gr.HTML(
|
|
@@ -1271,7 +1290,11 @@ with gr.Blocks(title="SmolLM3 / GPT-OSS Fine-tuning Pipeline") as demo:
|
|
| 1271 |
</div>
|
| 1272 |
"""
|
| 1273 |
)
|
| 1274 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1275 |
|
| 1276 |
# --- Progressive interface --------------------------------------------------------
|
| 1277 |
gr.Markdown("### Configure your run in simple steps")
|
|
|
|
| 944 |
return exp, repo_short, default_desc, trackio_space_name
|
| 945 |
|
| 946 |
|
| 947 |
+
title_md = """
|
| 948 |
+
# 🙋🏻♂️ Welcome to 🌟Tonic's 🤏🏻🏭 SmolFactory !
|
| 949 |
+
"""
|
| 950 |
+
|
| 951 |
+
howto_md = """
|
| 952 |
+
### How to
|
| 953 |
+
To get started, select a model family and a configuration.
|
| 954 |
+
"""
|
| 955 |
+
|
| 956 |
+
joinus_md = """
|
| 957 |
+
### Join us :
|
| 958 |
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
|
| 959 |
"""
|
| 960 |
|
| 961 |
+
# Load inline SVG to render before the Join Us section
|
| 962 |
+
try:
|
| 963 |
+
_OUTPUT_SVG_HTML = (PROJECT_ROOT / "docs" / "output.svg").read_text(encoding="utf-8")
|
| 964 |
+
except Exception:
|
| 965 |
+
_OUTPUT_SVG_HTML = ""
|
| 966 |
+
|
| 967 |
|
| 968 |
def on_family_change(family: str):
|
| 969 |
"""Update UI when the model family changes.
|
|
|
|
| 1265 |
</div>
|
| 1266 |
"""
|
| 1267 |
)
|
| 1268 |
+
gr.Markdown(title_md)
|
| 1269 |
+
gr.Markdown(howto_md)
|
| 1270 |
+
if _OUTPUT_SVG_HTML:
|
| 1271 |
+
gr.HTML(_OUTPUT_SVG_HTML)
|
| 1272 |
+
gr.Markdown(joinus_md)
|
| 1273 |
else:
|
| 1274 |
hint_html = markdown_links_to_html(duplicate_space_hint())
|
| 1275 |
gr.HTML(
|
|
|
|
| 1290 |
</div>
|
| 1291 |
"""
|
| 1292 |
)
|
| 1293 |
+
gr.Markdown(title_md)
|
| 1294 |
+
gr.Markdown(howto_md)
|
| 1295 |
+
if _OUTPUT_SVG_HTML:
|
| 1296 |
+
gr.HTML(_OUTPUT_SVG_HTML)
|
| 1297 |
+
gr.Markdown(joinus_md)
|
| 1298 |
|
| 1299 |
# --- Progressive interface --------------------------------------------------------
|
| 1300 |
gr.Markdown("### Configure your run in simple steps")
|