Spaces:
Runtime error
Runtime error
oliveiracwb
commited on
Commit
•
6861011
1
Parent(s):
1e77e4f
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,11 @@ def gera_texto(start, temperature, max_new_tokens, num_samples):
|
|
29 |
with st.form("my_form"):
|
30 |
col1, col2, col3 = st.columns(3)
|
31 |
with col1:
|
32 |
-
int_samples = st.slider('Exemplos', min_value=
|
33 |
with col2:
|
34 |
int_size = st.slider('Num Tokens', min_value=20, max_value=500, value=160, step=5)
|
35 |
with col3:
|
36 |
-
int_temp = st.number_input("Temperatura",min_value=0.
|
37 |
|
38 |
source = st.text_area("Escolha uma frase inicial", value="Contrui uma casa para nos", placeholder="Entre com o inicio da musica...")
|
39 |
|
|
|
29 |
with st.form("my_form"):
|
30 |
col1, col2, col3 = st.columns(3)
|
31 |
with col1:
|
32 |
+
int_samples = st.slider('Exemplos', min_value=2, max_value=10, value=4, step=2)
|
33 |
with col2:
|
34 |
int_size = st.slider('Num Tokens', min_value=20, max_value=500, value=160, step=5)
|
35 |
with col3:
|
36 |
+
int_temp = st.number_input("Temperatura",min_value=0.8,max_value=2.0,value=1.2,step=0.1,format="%.1f")
|
37 |
|
38 |
source = st.text_area("Escolha uma frase inicial", value="Contrui uma casa para nos", placeholder="Entre com o inicio da musica...")
|
39 |
|