yuntian-deng commited on
Commit
0251c9e
·
verified ·
1 Parent(s): f56e389

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(x['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}
 
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}