broadfield commited on
Commit
e35f0f6
·
verified ·
1 Parent(s): 1fe92c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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="<iframe src="https://broadfield-fast-voice.hf.space/?pdfurl={inn['id'].replace('/abs/','/pdf/')}&embedded=true" frameborder="0" height="200px" width="100%"></iframe></div>"
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)}"