Pclanglais commited on
Commit
b0fe837
·
verified ·
1 Parent(s): 445c0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -176,16 +176,14 @@ class CombinedProcessor:
176
 
177
  bibtex_entries = []
178
 
179
- for entry in bibliography_entries:
180
- style = style_classifier(entry, truncation=True, padding=True, top_k=None)
181
- print(style)
182
-
183
  for entry in bibliography_entries:
184
  print(entry)
185
- entry = re.sub(r'\s*([;:,\.])\s*', r' \1 ', entry)
186
  entry = re.sub(r'- ?[\n¶] ?', r'', entry)
187
  entry = re.sub(r' ?[\n¶] ?', r' ', entry)
188
- print(entry)
 
 
 
189
  bib_out = bibliography_classifier(entry)
190
  bib_df = pd.DataFrame(bib_out)
191
 
 
176
 
177
  bibtex_entries = []
178
 
 
 
 
 
179
  for entry in bibliography_entries:
180
  print(entry)
 
181
  entry = re.sub(r'- ?[\n¶] ?', r'', entry)
182
  entry = re.sub(r' ?[\n¶] ?', r' ', entry)
183
+ style = style_classifier(entry, truncation=True, padding=True, top_k=10)
184
+ print(style)
185
+ entry = re.sub(r'\s*([;:,\.])\s*', r' \1 ', entry)
186
+ #print(entry)
187
  bib_out = bibliography_classifier(entry)
188
  bib_df = pd.DataFrame(bib_out)
189