Add parameters reference #386 #331

This commit is contained in:
oobabooga 2023-03-17 20:19:04 -03:00
parent 9256e937d6
commit 20f5b455bf
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,11 @@
fill: white; fill: white;
} }
.dark a {
color: white !important;
text-decoration: none !important;
}
svg { svg {
display: unset !important; display: unset !important;
vertical-align: middle !important; vertical-align: middle !important;

View File

@ -133,7 +133,7 @@ def create_settings_menus(default_preset):
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
with gr.Box(): with gr.Box():
gr.Markdown('Custom generation parameters') gr.Markdown('Custom generation parameters ([reference](https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig))')
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
shared.gradio['temperature'] = gr.Slider(0.01, 1.99, value=generate_params['temperature'], step=0.01, label='temperature') shared.gradio['temperature'] = gr.Slider(0.01, 1.99, value=generate_params['temperature'], step=0.01, label='temperature')