Pclanglais commited on
Commit
ac61d79
·
verified ·
1 Parent(s): 69f42d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -192,13 +192,20 @@ class CombinedProcessor:
192
 
193
  if entity_group != 'None':
194
  if entity_group in bibtex_data:
195
- bibtex_data[entity_group] += ' ' + word
 
 
 
 
196
  else:
197
  bibtex_data[entity_group] = word
198
  current_entity = entity_group
199
  else:
200
  if current_entity:
201
- bibtex_data[current_entity] += ' ' + word
 
 
 
202
  else:
203
  bibtex_data['None'] = bibtex_data.get('None', '') + ' ' + word
204
 
 
192
 
193
  if entity_group != 'None':
194
  if entity_group in bibtex_data:
195
+ print(entity_group)
196
+ if entity_group == "Author":
197
+ bibtex_data[entity_group] += ', ' + word
198
+ else:
199
+ bibtex_data[entity_group] += ' ' + word
200
  else:
201
  bibtex_data[entity_group] = word
202
  current_entity = entity_group
203
  else:
204
  if current_entity:
205
+ if current_entity == "Author":
206
+ bibtex_data[current_entity] += ', ' + word
207
+ else:
208
+ bibtex_data[current_entity] += ' ' + word
209
  else:
210
  bibtex_data['None'] = bibtex_data.get('None', '') + ' ' + word
211