taesiri commited on
Commit
4639ead
1 Parent(s): 924a0c3
Files changed (2) hide show
  1. app.py +1 -1
  2. coreservice.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def get_paper_from_huggingface(paper_id):
40
  try:
41
  url = f"https://huggingface.co/datasets/taesiri/arxiv_db/raw/main/papers/{paper_id}.tex"
42
  response = requests.get(url)
43
- response.raise_for_status() # Will raise an HTTPError if the HTTP request returned an unsuccessful status code
44
  return response.text
45
  except Exception as e:
46
  return None
 
40
  try:
41
  url = f"https://huggingface.co/datasets/taesiri/arxiv_db/raw/main/papers/{paper_id}.tex"
42
  response = requests.get(url)
43
+ response.raise_for_status()
44
  return response.text
45
  except Exception as e:
46
  return None
coreservice.py CHANGED
@@ -7,13 +7,13 @@ contents = "\n".join(
7
 
8
  ga_script = """
9
  <!-- Google tag (gtag.js) -->
10
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-EZ77X5T529"></script>
11
  <script>
12
  window.dataLayer = window.dataLayer || [];
13
  function gtag(){dataLayer.push(arguments);}
14
  gtag('js', new Date());
15
 
16
- gtag('config', 'G-EZ77X5T529');
17
  </script>
18
  """
19
 
 
7
 
8
  ga_script = """
9
  <!-- Google tag (gtag.js) -->
10
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-C3VH0S3E6G"></script>
11
  <script>
12
  window.dataLayer = window.dataLayer || [];
13
  function gtag(){dataLayer.push(arguments);}
14
  gtag('js', new Date());
15
 
16
+ gtag('config', 'G-C3VH0S3E6G');
17
  </script>
18
  """
19