Update to Gradio 5

This commit is contained in:
henryruhs 2024-10-16 22:07:03 +02:00
parent 5471cbfc14
commit f2db1368f2
3 changed files with 5 additions and 28 deletions

View File

@ -17,41 +17,16 @@
width: 1.125rem;
}
:root:root:root:root input[type="range"],
:root:root:root:root .range-slider div
{
height: 0.5rem;
border-radius: 0.5rem;
}
:root:root:root:root input[type="range"]::-moz-range-thumb,
:root:root:root:root input[type="range"]::-webkit-slider-thumb
{
background: var(--neutral-300);
border: unset;
box-shadow: unset;
border-radius: 50%;
height: 1.125rem;
width: 1.125rem;
}
:root:root:root:root input[type="range"]::-webkit-slider-thumb
{
margin-top: 0.375rem;
}
:root:root:root:root .range-slider input[type="range"]::-webkit-slider-thumb
{
margin-top: 0.125rem;
}
:root:root:root:root .range-slider div,
:root:root:root:root .range-slider input[type="range"]
{
bottom: 50%;
margin-top: -0.25rem;
top: 50%;
}
:root:root:root:root .grid-wrap.fixed-height
{
min-height: unset;
@ -63,6 +38,7 @@
border: unset;
}
:root:root:root:root .slider_input_container > span,
:root:root:root:root .feather-upload,
:root:root:root:root footer
{

View File

@ -144,6 +144,7 @@ def get_theme() -> gradio.Theme:
button_secondary_border_color_hover_dark = 'transparent',
button_secondary_text_color = '*neutral_800',
button_small_padding = '0.75rem',
button_small_text_size = '0.875rem',
checkbox_background_color = '*neutral_200',
checkbox_background_color_selected = '*primary_600',
checkbox_background_color_selected_dark = '*primary_700',

View File

@ -1,6 +1,6 @@
filetype==1.2.0
gradio==4.44.0
gradio-rangeslider==0.0.6
gradio==5.1.0
gradio-rangeslider==0.0.8
numpy==2.1.0
onnx==1.16.1
onnxruntime==1.19.2