Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,10 +59,10 @@ function closefn(inn) {
|
|
59 |
function readfn(inn) {
|
60 |
console.log(inn);
|
61 |
var readit = document.getElementById("aud" + String(inn));
|
62 |
-
readit.innerHTML=
|
63 |
-
}
|
64 |
</script>
|
65 |
-
"""
|
66 |
|
67 |
def search(q,rn,st):
|
68 |
api=f"http://export.arxiv.org/api/query?search_query={str(q)}&start={str(st)}&max_results={str(rn)}"
|
|
|
59 |
function readfn(inn) {
|
60 |
console.log(inn);
|
61 |
var readit = document.getElementById("aud" + String(inn));
|
62 |
+
readit.innerHTML='<iframe src="https://broadfield-fast-voice.hf.space/?pdfurl=inn[`id`]&embedded=true" frameborder="0" height="200px" width="100%"></iframe></div>'
|
63 |
+
}
|
64 |
</script>
|
65 |
+
""".replace('/abs/','/pdf/')
|
66 |
|
67 |
def search(q,rn,st):
|
68 |
api=f"http://export.arxiv.org/api/query?search_query={str(q)}&start={str(st)}&max_results={str(rn)}"
|