oliveiracwb commited on
Commit
1e77e4f
1 Parent(s): 8cb6824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ def gera_texto(start, temperature, max_new_tokens, num_samples):
18
  temperature=temperature,
19
  top_p=0.5,
20
  nsamples=num_samples,
21
- batch_size=5,
22
  return_as_list=True
23
  )
24
  k =0
@@ -29,13 +29,13 @@ 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=1, max_value=10, value=5, step=1)
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.1,max_value=2.0,value=1.2,step=0.1,format="%.1f")
37
 
38
- source = st.text_area("Escolha uma frase inicial", value="Quero voce ao meu lado", placeholder="Entre com o inicio da musica...")
39
 
40
  submitted = st.form_submit_button("Gerar músicas")
41
  if submitted:
 
18
  temperature=temperature,
19
  top_p=0.5,
20
  nsamples=num_samples,
21
+ batch_size= 2,
22
  return_as_list=True
23
  )
24
  k =0
 
29
  with st.form("my_form"):
30
  col1, col2, col3 = st.columns(3)
31
  with col1:
32
+ int_samples = st.slider('Exemplos', min_value=1, 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.1,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
 
40
  submitted = st.form_submit_button("Gerar músicas")
41
  if submitted: