Tonic commited on
Commit
cc444b0
unverified
1 Parent(s): 71cb7fd

small interface improvements

Browse files
Files changed (1) hide show
  1. app.py +20 -14
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
- with gr.Column():
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():
 
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():