small interface improvements
Browse files
app.py
CHANGED
@@ -103,25 +103,31 @@ def generate_response(system_prompt, user_prompt, temperature, max_new_tokens, t
|
|
103 |
with gr.Blocks() as demo:
|
104 |
gr.Markdown(Title)
|
105 |
with gr.Row():
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
gr.Markdown(training)
|
110 |
# Configuration dans un accord茅on
|
111 |
with gr.Row():
|
112 |
-
with gr.Accordion("鈿欙笍 Infos
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
115 |
-
gr.
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
117 |
with gr.Column():
|
118 |
-
gr.
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
|
|
125 |
# Legml & TeamTonic c么te 脿 c么te
|
126 |
with gr.Row():
|
127 |
with gr.Column():
|
|
|
103 |
with gr.Blocks() as demo:
|
104 |
gr.Markdown(Title)
|
105 |
with gr.Row():
|
106 |
+
|
107 |
+
gr.Markdown(description)
|
108 |
+
|
|
|
109 |
# Configuration dans un accord茅on
|
110 |
with gr.Row():
|
111 |
+
with gr.Accordion("鈿欙笍 Infos et Configuration", open=False):
|
112 |
with gr.Row():
|
113 |
with gr.Column():
|
114 |
+
with gr.Blocks():
|
115 |
+
gr.Markdown("### D茅tails d'entra卯nement")
|
116 |
+
gr.Markdown(training)
|
117 |
+
with gr.Column():
|
118 |
+
with gr.Blocks():
|
119 |
+
gr.Markdown("### Configuration du mod猫le")
|
120 |
+
gr.Markdown(format_model_info(config_json))
|
121 |
with gr.Column():
|
122 |
+
with gr.Blocks():
|
123 |
+
gr.Markdown("### Configuration du tokenizer")
|
124 |
+
gr.Markdown(f"""
|
125 |
+
**Taille du vocabulaire :** {tokenizer.vocab_size}
|
126 |
+
**Longueur max du mod猫le :** {tokenizer.model_max_length}
|
127 |
+
**Token de padding :** {tokenizer.pad_token}
|
128 |
+
**Token EOS :** {tokenizer.eos_token}
|
129 |
+
""")
|
130 |
+
|
131 |
# Legml & TeamTonic c么te 脿 c么te
|
132 |
with gr.Row():
|
133 |
with gr.Column():
|