interface improvements
Browse files
app.py
CHANGED
@@ -21,11 +21,15 @@ training = """
|
|
21 |
- **Sponsor GPU** : 24 × H100 80 Go (Nebius)
|
22 |
"""
|
23 |
|
24 |
-
|
|
|
25 |
## Suivez Legml :
|
26 |
Retrouvez la communauté legml.ai sur [https://legml.ai](https://legml.ai) et suivez les nouveautés sur [Hugging Face](https://huggingface.co/legmlai).
|
|
|
27 |
|
28 |
-
# Join
|
|
|
|
|
29 |
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻
|
30 |
[](https://discord.gg/qdfnvSPcqP)
|
31 |
On 🤗Huggingface: [MultiTransformer](https://huggingface.co/MultiTransformer)
|
@@ -103,23 +107,27 @@ with gr.Blocks() as demo:
|
|
103 |
gr.Markdown(description)
|
104 |
with gr.Column():
|
105 |
gr.Markdown(training)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
with gr.Row():
|
107 |
with gr.Column():
|
108 |
-
|
109 |
-
gr.Markdown("### Configuration du modèle")
|
110 |
-
gr.Markdown(format_model_info(config_json))
|
111 |
with gr.Column():
|
112 |
-
|
113 |
-
gr.Markdown("### Configuration du tokenizer")
|
114 |
-
gr.Markdown(f"""
|
115 |
-
**Taille du vocabulaire :** {tokenizer.vocab_size}
|
116 |
-
**Longueur max du modèle :** {tokenizer.model_max_length}
|
117 |
-
**Token de padding :** {tokenizer.pad_token}
|
118 |
-
**Token EOS :** {tokenizer.eos_token}
|
119 |
-
""")
|
120 |
-
with gr.Row():
|
121 |
-
with gr.Group():
|
122 |
-
gr.Markdown(join_us)
|
123 |
with gr.Row():
|
124 |
with gr.Column():
|
125 |
system_prompt = gr.Textbox(
|
|
|
21 |
- **Sponsor GPU** : 24 × H100 80 Go (Nebius)
|
22 |
"""
|
23 |
|
24 |
+
# Suivez Legml
|
25 |
+
legml_info = """
|
26 |
## Suivez Legml :
|
27 |
Retrouvez la communauté legml.ai sur [https://legml.ai](https://legml.ai) et suivez les nouveautés sur [Hugging Face](https://huggingface.co/legmlai).
|
28 |
+
"""
|
29 |
|
30 |
+
# Join TeamTonic
|
31 |
+
teamtonic_info = """
|
32 |
+
## Join us:
|
33 |
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻
|
34 |
[](https://discord.gg/qdfnvSPcqP)
|
35 |
On 🤗Huggingface: [MultiTransformer](https://huggingface.co/MultiTransformer)
|
|
|
107 |
gr.Markdown(description)
|
108 |
with gr.Column():
|
109 |
gr.Markdown(training)
|
110 |
+
# Configuration dans un accordéon
|
111 |
+
with gr.Row():
|
112 |
+
with gr.Accordion("⚙️ Infos de Configuration", open=False):
|
113 |
+
with gr.Row():
|
114 |
+
with gr.Column():
|
115 |
+
gr.Markdown("### Configuration du modèle")
|
116 |
+
gr.Markdown(format_model_info(config_json))
|
117 |
+
with gr.Column():
|
118 |
+
gr.Markdown("### Configuration du tokenizer")
|
119 |
+
gr.Markdown(f"""
|
120 |
+
**Taille du vocabulaire :** {tokenizer.vocab_size}
|
121 |
+
**Longueur max du modèle :** {tokenizer.model_max_length}
|
122 |
+
**Token de padding :** {tokenizer.pad_token}
|
123 |
+
**Token EOS :** {tokenizer.eos_token}
|
124 |
+
""")
|
125 |
+
# Legml & TeamTonic côte à côte
|
126 |
with gr.Row():
|
127 |
with gr.Column():
|
128 |
+
gr.Markdown(legml_info)
|
|
|
|
|
129 |
with gr.Column():
|
130 |
+
gr.Markdown(teamtonic_info)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
with gr.Row():
|
132 |
with gr.Column():
|
133 |
system_prompt = gr.Textbox(
|