broadfield commited on
Commit
341551d
·
verified ·
1 Parent(s): 10ac278

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -7,14 +7,17 @@ style="""
7
  font-size: x-large;
8
  font-weight: 700;
9
  margin-bottom: 10px;
 
10
  }
11
  .card_div{
12
  background: #050523;
 
13
  margin: 10px;
14
  padding: 15px;
15
  border-radius: 5px;
16
  }
17
  """
 
18
  def search(q,rn):
19
  api="http://export.arxiv.org/api/query?search_query=SQ&start=0&max_results=MR"
20
  r=requests.get(api.replace("SQ",q).replace("MR",str(rn)))
@@ -23,7 +26,7 @@ def search(q,rn):
23
  for i,c in enumerate(cont):
24
  pdflink=c['id'].replace('/abs/','/pdf/')
25
  html+=f"<div class='card_div' id='id{i}' onclick='fun_run()'>"
26
- html+=f"<div class='titlebase'>{c['title']}</div>"
27
  html+=f"<div>{c['summary']}</div>"
28
  html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
29
  html+="</div>"
 
7
  font-size: x-large;
8
  font-weight: 700;
9
  margin-bottom: 10px;
10
+ color: white;
11
  }
12
  .card_div{
13
  background: #050523;
14
+ color: white;
15
  margin: 10px;
16
  padding: 15px;
17
  border-radius: 5px;
18
  }
19
  """
20
+
21
  def search(q,rn):
22
  api="http://export.arxiv.org/api/query?search_query=SQ&start=0&max_results=MR"
23
  r=requests.get(api.replace("SQ",q).replace("MR",str(rn)))
 
26
  for i,c in enumerate(cont):
27
  pdflink=c['id'].replace('/abs/','/pdf/')
28
  html+=f"<div class='card_div' id='id{i}' onclick='fun_run()'>"
29
+ html+=f"<div class='title_div'>{c['title']}</div>"
30
  html+=f"<div>{c['summary']}</div>"
31
  html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
32
  html+="</div>"