Spaces:
Running
Running
Update app.py
Browse files
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 =
|
|
|
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
|