Spaces:
Sleeping
Sleeping
pizzagatakasugi
commited on
Commit
•
4bee8c6
1
Parent(s):
604dd69
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ if num in [str(x) for x in list(range(10))]:
|
|
72 |
|
73 |
with st.expander("parameter"):
|
74 |
|
75 |
-
beams = st.slider("num_beams",min_value=1,max_value=10,step=1,value=
|
76 |
tokens = st.slider("min_new_tokens",min_value=0,max_value=50,step=1,value=20,key=3)
|
77 |
top_p = st.slider("top_p",min_value=0.50,max_value=1.00,value=0.90,step=0.01)
|
78 |
top_k = st.slider("top_k",min_value=5,max_value=50,value=30,step=1)
|
@@ -127,12 +127,9 @@ if num in [str(x) for x in list(range(10))]:
|
|
127 |
)
|
128 |
# output_list = []
|
129 |
st.write(input)
|
130 |
-
for x in range(
|
131 |
output_text = tokenizer.decode(output_ids[x], skip_special_tokens=True,
|
132 |
clean_up_tokenization_spaces=False)
|
133 |
st.write(output_text)
|
134 |
|
135 |
|
136 |
-
# temperature = st.slider("temperature",min_value=0.0,max_value=1.0,step=0.01,value=0.3,key=1)
|
137 |
-
# num_beams = st.slider("num_beams",min_value=1,max_value=5,step=1,value=1,key=2)
|
138 |
-
# min_new_tokens = st.slider("min_new_tokens",min_value=0,max_value=100,value=30,key=3)
|
|
|
72 |
|
73 |
with st.expander("parameter"):
|
74 |
|
75 |
+
beams = st.slider("num_beams",min_value=1,max_value=10,step=1,value=5,key=2)
|
76 |
tokens = st.slider("min_new_tokens",min_value=0,max_value=50,step=1,value=20,key=3)
|
77 |
top_p = st.slider("top_p",min_value=0.50,max_value=1.00,value=0.90,step=0.01)
|
78 |
top_k = st.slider("top_k",min_value=5,max_value=50,value=30,step=1)
|
|
|
127 |
)
|
128 |
# output_list = []
|
129 |
st.write(input)
|
130 |
+
for x in range(5):
|
131 |
output_text = tokenizer.decode(output_ids[x], skip_special_tokens=True,
|
132 |
clean_up_tokenization_spaces=False)
|
133 |
st.write(output_text)
|
134 |
|
135 |
|
|
|
|
|
|