gagan3012 commited on
Commit
927a765
·
1 Parent(s): d1e6186

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ import subprocess
4
  import gradio as gr
5
  def fetch_bibtex(arxiv_link):
6
  # Extract the arXiv ID from the link
7
- arxiv_id = re.findall(r'arxiv\.org\/abs\/([\w\.]+)', arxiv_link)[0]
 
8
 
9
  # Use an API or web scraping method to fetch the BibTeX
10
  # For simplicity, here's a placeholder for the BibTeX entry
 
4
  import gradio as gr
5
  def fetch_bibtex(arxiv_link):
6
  # Extract the arXiv ID from the link
7
+ arxiv_id = re.findall(r'arxiv\.org\/(?:abs|pdf)\/([\w\.]+)', arxiv_link)[0]
8
+
9
 
10
  # Use an API or web scraping method to fetch the BibTeX
11
  # For simplicity, here's a placeholder for the BibTeX entry