firqaaa commited on
Commit
e691ade
1 Parent(s): b509c86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1049,7 +1049,7 @@ if uploaded_files:
1049
  for g in concat['genes_locus'][i].split(','):
1050
  L.append({
1051
  'Title' : concat['title'][0],
1052
- 'Author' : concat['authors'][0],
1053
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1054
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1055
  'Genes' : g.upper(),
@@ -1066,7 +1066,7 @@ if uploaded_files:
1066
  try:
1067
  L.append({
1068
  'Title' : concat['title'][0],
1069
- 'Author' : concat['authors'][0],
1070
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1071
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1072
  'Genes' : get_geneName(s.strip()).upper(),
@@ -1081,7 +1081,7 @@ if uploaded_files:
1081
  except Exception as e:
1082
  L.append({
1083
  'Title' : concat['title'][0],
1084
- 'Author' : concat['authors'][0],
1085
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1086
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1087
  'Genes' : '',
 
1049
  for g in concat['genes_locus'][i].split(','):
1050
  L.append({
1051
  'Title' : concat['title'][0],
1052
+ 'Author' : concat['authors'][0] if 'authors' in list(concat.columns) else '',
1053
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1054
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1055
  'Genes' : g.upper(),
 
1066
  try:
1067
  L.append({
1068
  'Title' : concat['title'][0],
1069
+ 'Author' : concat['authors'][0] if 'authors' in list(concat.columns) else '',
1070
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1071
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1072
  'Genes' : get_geneName(s.strip()).upper(),
 
1081
  except Exception as e:
1082
  L.append({
1083
  'Title' : concat['title'][0],
1084
+ 'Author' : concat['authors'][0] if 'authors' in list(concat.columns) else '',
1085
  'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1086
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1087
  'Genes' : '',