DHRUV SHEKHAWAT commited on
Commit
487841d
·
1 Parent(s): d2fcb53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,12 +42,12 @@ class TransformerChatbot(Model):
42
  st.title("UniGLM TEXT completion Model")
43
  st.subheader("Next Word Prediction AI Model by Webraft-AI")
44
  #Picking what NLP task you want to do
45
- option = st.selectbox('Model',('12M Param')) #option is stored in this variable
46
  #Textbox for text user is entering
47
  st.subheader("Enter the text you'd like to analyze.")
48
  text = st.text_input('Enter word: ') #text is stored in this variable
49
 
50
- if option == '12M Param':
51
  loaded_dict = np.load("dict_predict3.bin.npz", allow_pickle=True)
52
  word_to_num = loaded_dict["word_to_num"].item()
53
  num_to_word = loaded_dict["num_to_word"].item()
 
42
  st.title("UniGLM TEXT completion Model")
43
  st.subheader("Next Word Prediction AI Model by Webraft-AI")
44
  #Picking what NLP task you want to do
45
+ option = st.selectbox('Model',('1')) #option is stored in this variable
46
  #Textbox for text user is entering
47
  st.subheader("Enter the text you'd like to analyze.")
48
  text = st.text_input('Enter word: ') #text is stored in this variable
49
 
50
+ if option == '1':
51
  loaded_dict = np.load("dict_predict3.bin.npz", allow_pickle=True)
52
  word_to_num = loaded_dict["word_to_num"].item()
53
  num_to_word = loaded_dict["num_to_word"].item()