Merge branch 'huggingface-dev' into huggingface
Browse files- dashboard.py +2 -2
dashboard.py
CHANGED
@@ -104,8 +104,8 @@ def inference_sidebar() -> Tuple[bool, int, int, int]:
|
|
104 |
else:
|
105 |
min_noise, max_noise = 0, 0
|
106 |
|
107 |
-
bw = st.sidebar.slider('Beam search width', 1,
|
108 |
-
value=st.session_state.get('beam_width',
|
109 |
|
110 |
if max_noise > var.MAX_NOISE:
|
111 |
st.sidebar.warning('Max noise value is too large. This will entail poor performance')
|
|
|
104 |
else:
|
105 |
min_noise, max_noise = 0, 0
|
106 |
|
107 |
+
bw = st.sidebar.slider('Beam search width', 1, 25, key='beam_width',
|
108 |
+
value=st.session_state.get('beam_width', 5))
|
109 |
|
110 |
if max_noise > var.MAX_NOISE:
|
111 |
st.sidebar.warning('Max noise value is too large. This will entail poor performance')
|