Spaces:
Paused
Paused
DHRUV SHEKHAWAT
commited on
Commit
·
9211632
1
Parent(s):
0b15668
Update app.py
Browse files
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 |
-
|
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 =
|
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 =
|
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()
|