atrytone commited on
Commit
7bdfdca
1 Parent(s): 9c670cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def inference(query):
41
  doc = match[0]
42
  score = round(normaliser(round(match[1].item(), 3)), 3)
43
  title = doc.metadata['title']
44
- author = doc.metadata['authors'][0].title()
45
  date = doc.metadata.get('date', 'None')
46
  link = doc.metadata.get('link', 'None')
47
  submitter = doc.metadata.get('submitter', 'None')
 
41
  doc = match[0]
42
  score = round(normaliser(round(match[1].item(), 3)), 3)
43
  title = doc.metadata['title']
44
+ author = doc.metadata['authors'].title()
45
  date = doc.metadata.get('date', 'None')
46
  link = doc.metadata.get('link', 'None')
47
  submitter = doc.metadata.get('submitter', 'None')