DHRUV SHEKHAWAT commited on
Commit
9211632
·
1 Parent(s): 0b15668

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ st.subheader("Next Word Prediction AI Model by Webraft-AI")
46
  option = st.selectbox('Model',('13M','26M')) #option is stored in this variable
47
  #Textbox for text user is entering
48
  st.subheader("Enter a word from which a sentence / word would be predicted")
49
- len2 = st.text_input('Enter sequence length: ')
50
  text2 = st.text_input('Enter word: ') #text is stored in this variable
51
 
52
 
@@ -60,7 +60,7 @@ if option == '13M':
60
  weights = "predict3"
61
  datafile = "data2.txt"
62
  dict = "dict_predict3.bin.npz"
63
- len = len2
64
  text2 = text2
65
  with open(datafile,"r") as f:
66
  text = f.read()
@@ -122,7 +122,7 @@ elif option=="26M":
122
  weights = "predict5"
123
  datafile = "data2.txt"
124
  dict = "dict_predict3.bin.npz"
125
- len = len2
126
  text2 = text2
127
  with open(datafile,"r") as f:
128
  text = f.read()
 
46
  option = st.selectbox('Model',('13M','26M')) #option is stored in this variable
47
  #Textbox for text user is entering
48
  st.subheader("Enter a word from which a sentence / word would be predicted")
49
+
50
  text2 = st.text_input('Enter word: ') #text is stored in this variable
51
 
52
 
 
60
  weights = "predict3"
61
  datafile = "data2.txt"
62
  dict = "dict_predict3.bin.npz"
63
+ len = 15
64
  text2 = text2
65
  with open(datafile,"r") as f:
66
  text = f.read()
 
122
  weights = "predict5"
123
  datafile = "data2.txt"
124
  dict = "dict_predict3.bin.npz"
125
+ len = 15
126
  text2 = text2
127
  with open(datafile,"r") as f:
128
  text = f.read()