Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,13 +19,12 @@ def fetch_bibtex(arxiv_link):
|
|
19 |
|
20 |
# Get the output
|
21 |
output = result.stdout
|
22 |
-
|
23 |
-
|
24 |
-
return output
|
25 |
|
26 |
|
27 |
interface = gr.Interface(fn=fetch_bibtex,
|
28 |
-
inputs=gr.Textbox(
|
29 |
-
outputs="
|
30 |
|
31 |
interface.launch()
|
|
|
19 |
|
20 |
# Get the output
|
21 |
output = result.stdout
|
22 |
+
|
23 |
+
return {"citation": output}
|
|
|
24 |
|
25 |
|
26 |
interface = gr.Interface(fn=fetch_bibtex,
|
27 |
+
inputs=gr.Textbox(label="URL"),
|
28 |
+
outputs="json")
|
29 |
|
30 |
interface.launch()
|