Spaces:
Runtime error
Runtime error
yirmibesogluz
commited on
Commit
•
0ce2ff3
1
Parent(s):
9295e45
Removed conf params from STS and TC
Browse files- apps/categorization.py +2 -2
- apps/sts.py +2 -2
apps/categorization.py
CHANGED
@@ -19,7 +19,7 @@ def write():
|
|
19 |
# Sidebar
|
20 |
|
21 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
22 |
-
st.sidebar.subheader("Configurable parameters")
|
23 |
|
24 |
model_name = st.sidebar.selectbox(
|
25 |
"Model Selector",
|
@@ -28,7 +28,7 @@ def write():
|
|
28 |
],
|
29 |
index=0,
|
30 |
)
|
31 |
-
|
32 |
"Maximum length",
|
33 |
min_value=0,
|
34 |
max_value=20,
|
|
|
19 |
# Sidebar
|
20 |
|
21 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
22 |
+
"""st.sidebar.subheader("Configurable parameters")
|
23 |
|
24 |
model_name = st.sidebar.selectbox(
|
25 |
"Model Selector",
|
|
|
28 |
],
|
29 |
index=0,
|
30 |
)
|
31 |
+
max_new_tokens = st.sidebar.number_input(
|
32 |
"Maximum length",
|
33 |
min_value=0,
|
34 |
max_value=20,
|
apps/sts.py
CHANGED
@@ -19,7 +19,7 @@ def write():
|
|
19 |
# Sidebar
|
20 |
|
21 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
22 |
-
st.sidebar.subheader("Configurable parameters")
|
23 |
|
24 |
model_name = st.sidebar.selectbox(
|
25 |
"Model Selector",
|
@@ -28,7 +28,7 @@ def write():
|
|
28 |
],
|
29 |
index=0,
|
30 |
)
|
31 |
-
|
32 |
"Maximum length",
|
33 |
min_value=0,
|
34 |
max_value=20,
|
|
|
19 |
# Sidebar
|
20 |
|
21 |
# Taken from https://huggingface.co/spaces/flax-community/spanish-gpt2/blob/main/app.py
|
22 |
+
"""st.sidebar.subheader("Configurable parameters")
|
23 |
|
24 |
model_name = st.sidebar.selectbox(
|
25 |
"Model Selector",
|
|
|
28 |
],
|
29 |
index=0,
|
30 |
)
|
31 |
+
max_new_tokens = st.sidebar.number_input(
|
32 |
"Maximum length",
|
33 |
min_value=0,
|
34 |
max_value=20,
|