yash161101 commited on
Commit
5c33062
1 Parent(s): 07843c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ g = "life is a"
22
  c = 5
23
  with st.form(key='my_form'):
24
  prompt = st.text_area(label='Enter sentence', value=g)
25
- prompt = st.text_area(label='Enter Number of words', value=c)
26
  submit_button = st.form_submit_button(label='Submit')
27
  if submit_button:
28
  with torch.no_grad():
@@ -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 = ' '.join(best_words[c])
42
  st.write(final_string)
 
22
  c = 5
23
  with st.form(key='my_form'):
24
  prompt = st.text_area(label='Enter sentence', value=g)
25
+ #prompt = st.text_area(label='Enter Number of words', value=c)
26
  submit_button = st.form_submit_button(label='Submit')
27
  if submit_button:
28
  with torch.no_grad():
 
38
  text.append(best_indices[0].item())
39
  best_probabilities = probabilities[best_indices].tolist()
40
  words = []
41
+ final_string = ' '.join(best_words)
42
  st.write(final_string)