Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import requests
|
| 2 |
import re
|
| 3 |
import subprocess
|
| 4 |
-
|
| 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]
|
|
@@ -20,8 +20,6 @@ def fetch_bibtex(arxiv_link):
|
|
| 20 |
return output
|
| 21 |
|
| 22 |
|
| 23 |
-
import radio as gr
|
| 24 |
-
|
| 25 |
interface = gr.Interface(fn=fetch_bibtex,
|
| 26 |
inputs=gr.Textbox(lines=2, placeholder="Enter arXiv link here..."),
|
| 27 |
outputs="text")
|
|
|
|
| 1 |
import requests
|
| 2 |
import re
|
| 3 |
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]
|
|
|
|
| 20 |
return output
|
| 21 |
|
| 22 |
|
|
|
|
|
|
|
| 23 |
interface = gr.Interface(fn=fetch_bibtex,
|
| 24 |
inputs=gr.Textbox(lines=2, placeholder="Enter arXiv link here..."),
|
| 25 |
outputs="text")
|