Spaces:
Sleeping
Sleeping
Omar ID EL MOUMEN
commited on
Commit
·
2ca42fd
1
Parent(s):
ca2c7e8
Add pdf value on /search request
Browse files
app.py
CHANGED
@@ -66,7 +66,8 @@ async def get_articles(query: Query):
|
|
66 |
"title": title_pub,
|
67 |
"authors": authors,
|
68 |
"date": pub_date,
|
69 |
-
"abstract": abstract
|
|
|
70 |
}
|
71 |
return {"error": False, "message": content}
|
72 |
except Exception as e:
|
|
|
66 |
"title": title_pub,
|
67 |
"authors": authors,
|
68 |
"date": pub_date,
|
69 |
+
"abstract": abstract,
|
70 |
+
"pdf": f"http://arxiv.org/pdf/{id_pub}"
|
71 |
}
|
72 |
return {"error": False, "message": content}
|
73 |
except Exception as e:
|