gagan3012 commited on
Commit
9ff9d6f
·
1 Parent(s): 88238ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -19,13 +19,12 @@ def fetch_bibtex(arxiv_link):
19
 
20
  # Get the output
21
  output = result.stdout
22
- print(output)
23
-
24
- return output
25
 
26
 
27
  interface = gr.Interface(fn=fetch_bibtex,
28
- inputs=gr.Textbox(lines=2, placeholder="Enter arXiv link here..."),
29
- outputs="text")
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()