Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'].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 = eval(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')
|