merve HF staff commited on
Commit
d4e9ffa
1 Parent(s): c6ed606

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ sent = st.text_area("Text", default_value, height = 275)
18
  max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
19
  num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
20
 
21
- outputs = infer(sent, max_length, num_return_sequences)
22
 
23
  #for output in outputs[0]:
24
  st.write(outputs[0]["generated_text"])
 
18
  max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
19
  num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
20
 
21
+ outputs = infer(sent, max_length = max_length, num_return_sequences=num_return_sequences)
22
 
23
  #for output in outputs[0]:
24
  st.write(outputs[0]["generated_text"])