Wootang01 commited on
Commit
1954bdd
1 Parent(s): f871f8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def load_model():
16
  return model
17
 
18
  def get_response(
19
- input_text, num_return_sequences, num_beams, max_length=60, temperature=1.5
20
  ):
21
 
22
  model = load_model()
@@ -27,7 +27,7 @@ def get_response(
27
 
28
  num_beams = 10
29
  num_return_sequences = st.slider("Number of paraphrases", 1, 5, 3, 1)
30
- context = st.text_area(label="Write or paste text", max_chars=384)
31
 
32
  with st.expander("Advanced"):
33
  temperature = st.slider("Temperature", 0.1, 5.0, 1.5, 0.1)
 
16
  return model
17
 
18
  def get_response(
19
+ input_text, num_return_sequences, num_beams, max_length=128, temperature=1.5
20
  ):
21
 
22
  model = load_model()
 
27
 
28
  num_beams = 10
29
  num_return_sequences = st.slider("Number of paraphrases", 1, 5, 3, 1)
30
+ context = st.text_area(label="Write or paste text", max_chars=512)
31
 
32
  with st.expander("Advanced"):
33
  temperature = st.slider("Temperature", 0.1, 5.0, 1.5, 0.1)