Spaces:
Runtime error
Runtime error
gchhablani
commited on
Commit
•
c1274fe
1
Parent(s):
0802e6e
Fix slider issue
Browse files
app.py
CHANGED
@@ -73,9 +73,8 @@ st.write(
|
|
73 |
|
74 |
st.sidebar.title("Generation Parameters")
|
75 |
num_beams = st.sidebar.number_input(label="Number of Beams", min_value=2, max_value=10, value=4, step=1, help="Number of beams to be used in beam search.")
|
76 |
-
temperature = st.sidebar.select_slider(label="Temperature", options = np.arange(0.0,1.1, step=0.1), value=1.0, help ="The value used to module the next token probabilities.", format_func=lambda x: f"{x:.2f}")
|
77 |
-
top_p = st.sidebar.select_slider(label = "Top-P", options = np.arange(0.0,1.1, step=0.1),value=1.0, help="Nucleus Sampling : If set to float < 1, only the most probable tokens with probabilities that add up to :obj:`top_p` or higher are kept for generation.", format_func=lambda x: f"{x:.2f}")
|
78 |
-
|
79 |
|
80 |
image_col, intro_col = st.beta_columns([3, 8])
|
81 |
image_col.image("./misc/mic-logo.png", use_column_width="always")
|
|
|
73 |
|
74 |
st.sidebar.title("Generation Parameters")
|
75 |
num_beams = st.sidebar.number_input(label="Number of Beams", min_value=2, max_value=10, value=4, step=1, help="Number of beams to be used in beam search.")
|
76 |
+
temperature = st.sidebar.select_slider(label="Temperature", options = list(np.arange(0.0,1.1, step=0.1)), value=1.0, help ="The value used to module the next token probabilities.", format_func=lambda x: f"{x:.2f}")
|
77 |
+
top_p = st.sidebar.select_slider(label = "Top-P", options = list(np.arange(0.0,1.1, step=0.1)),value=1.0, help="Nucleus Sampling : If set to float < 1, only the most probable tokens with probabilities that add up to :obj:`top_p` or higher are kept for generation.", format_func=lambda x: f"{x:.2f}")
|
|
|
78 |
|
79 |
image_col, intro_col = st.beta_columns([3, 8])
|
80 |
image_col.image("./misc/mic-logo.png", use_column_width="always")
|