manika07 commited on
Commit
75672f4
Β·
1 Parent(s): 3454b90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -45,6 +45,7 @@ tab1, tab2, tab3 = st.tabs(["πŸ“ˆ Load Data", "πŸ“ƒ Tagged ETDs", "πŸ““ Download
45
 
46
  with tab1:
47
  #===load data===
 
48
  if uploaded_file is not None:
49
  df = pd.read_csv(uploaded_file, encoding='latin-1')
50
  st.dataframe(df)
@@ -52,6 +53,7 @@ if uploaded_file is not None:
52
  with tab2:
53
  #===tagged ETDs===
54
  # Tag the "Abstract" column with the corresponding categories
 
55
  if uploaded_file is not None:
56
  df = pd.read_csv(uploaded_file, encoding='latin-1')
57
  st.dataframe(df)
@@ -69,6 +71,7 @@ def predict_category(abstract):
69
  with tab3:
70
  #===download result===
71
  # Create a download button
 
72
  if st.sidebar.button("Download"):
73
  csv = df.to_csv(index=False)
74
  b64 = base64.b64encode(csv.encode()).decode()
 
45
 
46
  with tab1:
47
  #===load data===
48
+
49
  if uploaded_file is not None:
50
  df = pd.read_csv(uploaded_file, encoding='latin-1')
51
  st.dataframe(df)
 
53
  with tab2:
54
  #===tagged ETDs===
55
  # Tag the "Abstract" column with the corresponding categories
56
+
57
  if uploaded_file is not None:
58
  df = pd.read_csv(uploaded_file, encoding='latin-1')
59
  st.dataframe(df)
 
71
  with tab3:
72
  #===download result===
73
  # Create a download button
74
+
75
  if st.sidebar.button("Download"):
76
  csv = df.to_csv(index=False)
77
  b64 = base64.b64encode(csv.encode()).decode()