allenchienxxx commited on
Commit
05aa759
1 Parent(s): a6a4428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -12,13 +12,13 @@ def main():
12
  Numf = num_feature(uploaded_file)
13
  Extraf = extra_feature(uploaded_file)
14
 
15
- feat = get_features(uploaded_file)
16
- feat.at[0,"text"] = txt.at[0,"text"]
17
- columns = feat.columns.tolist()
18
- columns = [columns[-1]] + columns[:-1]
19
- feat = feat[columns]
20
  # st.write(uploaded_file.read())
21
- st.write(feat)
22
  # st.write(txt)
23
  st.write("Text Prediction: "+predict_content(txt))
24
  st.write("HTML Tags Prediction: "+predict_html(html))
 
12
  Numf = num_feature(uploaded_file)
13
  Extraf = extra_feature(uploaded_file)
14
 
15
+ # feat = get_features(uploaded_file)
16
+ # feat.at[0,"text"] = txt.at[0,"text"]
17
+ # columns = feat.columns.tolist()
18
+ # columns = [columns[-1]] + columns[:-1]
19
+ # feat = feat[columns]
20
  # st.write(uploaded_file.read())
21
+ # st.write(feat)
22
  # st.write(txt)
23
  st.write("Text Prediction: "+predict_content(txt))
24
  st.write("HTML Tags Prediction: "+predict_html(html))