yash161101 commited on
Commit
3f9defd
·
1 Parent(s): 9221121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def get_model():
19
 
20
  model, tokenizer = get_model()
21
  #g =
22
- #c = 5
23
  with st.form(key='my_form'):
24
  prompt = st.text_input('Enter sentence', '')
25
  #prompt = st.text_area(label='Enter Number of words', value=c)
@@ -38,5 +38,5 @@ with st.form(key='my_form'):
38
  text.append(best_indices[0].item())
39
  best_probabilities = probabilities[best_indices].tolist()
40
  words = []
41
- final_string = best_words[0]
42
  st.write(final_string)
 
19
 
20
  model, tokenizer = get_model()
21
  #g =
22
+ c = 5
23
  with st.form(key='my_form'):
24
  prompt = st.text_input('Enter sentence', '')
25
  #prompt = st.text_area(label='Enter Number of words', value=c)
 
38
  text.append(best_indices[0].item())
39
  best_probabilities = probabilities[best_indices].tolist()
40
  words = []
41
+ final_string = prompt + best_words[0:5]
42
  st.write(final_string)