faizhalas commited on
Commit
321363e
·
verified ·
1 Parent(s): 656ddcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -56,8 +56,7 @@ if uploaded_file is not None:
56
  elif extype.endswith('.txt'):
57
  data = conv_txt(extype)
58
 
59
- #===check keywords===
60
- st.divider()
61
  keycheck = list(data.columns)
62
  keycheck = [k for k in keycheck if 'Keyword' in k]
63
 
@@ -69,7 +68,6 @@ if uploaded_file is not None:
69
  container1.write('✅ Congratulations! You can use Keywords Stem')
70
 
71
  #===check any obj===
72
- st.divider()
73
  coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
74
 
75
  container2 = st.container(border=True)
@@ -80,9 +78,7 @@ if uploaded_file is not None:
80
  else:
81
  container2.write('✅ Congratulations! You can use Topic Modeling')
82
 
83
- #===bidirected===
84
- st.divider()
85
-
86
  container3 = st.container(border=True)
87
  container3.subheader('Bidirected Network', divider='red')
88
 
@@ -92,7 +88,6 @@ if uploaded_file is not None:
92
  container3.write('✅ Congratulations! You can use Bidirected Network')
93
 
94
  #===Visualization===
95
- st.divider()
96
  if 'Publication Year' in data.columns:
97
  papers.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
98
  'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
 
56
  elif extype.endswith('.txt'):
57
  data = conv_txt(extype)
58
 
59
+ #===check keywords===
 
60
  keycheck = list(data.columns)
61
  keycheck = [k for k in keycheck if 'Keyword' in k]
62
 
 
68
  container1.write('✅ Congratulations! You can use Keywords Stem')
69
 
70
  #===check any obj===
 
71
  coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
72
 
73
  container2 = st.container(border=True)
 
78
  else:
79
  container2.write('✅ Congratulations! You can use Topic Modeling')
80
 
81
+ #===bidirected===
 
 
82
  container3 = st.container(border=True)
83
  container3.subheader('Bidirected Network', divider='red')
84
 
 
88
  container3.write('✅ Congratulations! You can use Bidirected Network')
89
 
90
  #===Visualization===
 
91
  if 'Publication Year' in data.columns:
92
  papers.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
93
  'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)