Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,6 +115,7 @@ class CombinedProcessor:
|
|
| 115 |
|
| 116 |
bibtex_entries = []
|
| 117 |
for entry in bibliography_entries:
|
|
|
|
| 118 |
bib_out = bibliography_classifier(entry)
|
| 119 |
bib_df = pd.DataFrame(bib_out)
|
| 120 |
|
|
@@ -140,8 +141,8 @@ class CombinedProcessor:
|
|
| 140 |
bibtex_entries.append(bibtex_entry)
|
| 141 |
|
| 142 |
# Join BibTeX entries with HTML formatting
|
| 143 |
-
formatted_entries = [
|
| 144 |
-
return "
|
| 145 |
|
| 146 |
# Create the processor instance
|
| 147 |
processor = CombinedProcessor()
|
|
|
|
| 115 |
|
| 116 |
bibtex_entries = []
|
| 117 |
for entry in bibliography_entries:
|
| 118 |
+
entry = re.sub(r'\s*([;:])\s*', r' \1 ', entry)
|
| 119 |
bib_out = bibliography_classifier(entry)
|
| 120 |
bib_df = pd.DataFrame(bib_out)
|
| 121 |
|
|
|
|
| 141 |
bibtex_entries.append(bibtex_entry)
|
| 142 |
|
| 143 |
# Join BibTeX entries with HTML formatting
|
| 144 |
+
formatted_entries = [html.escape(entry) for entry in bibtex_entries]
|
| 145 |
+
return "\n\n".join(formatted_entries)
|
| 146 |
|
| 147 |
# Create the processor instance
|
| 148 |
processor = CombinedProcessor()
|