Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def normalize_spaces(text):
|
|
21 |
# validation_data = json.load(file)
|
22 |
|
23 |
def fill_template(title, authors, abstract):
|
24 |
-
title = normalize_spaces(
|
25 |
authors = ', '.join([author.strip() for author in authors.split(',')])
|
26 |
abstract = normalize_spaces(abstract.replace('\n', ' '))
|
27 |
text = f"""Title: {title}
|
|
|
21 |
# validation_data = json.load(file)
|
22 |
|
23 |
def fill_template(title, authors, abstract):
|
24 |
+
title = normalize_spaces(title.replace('\n', ' '))
|
25 |
authors = ', '.join([author.strip() for author in authors.split(',')])
|
26 |
abstract = normalize_spaces(abstract.replace('\n', ' '))
|
27 |
text = f"""Title: {title}
|