Jueri commited on
Commit
924e47f
1 Parent(s): 28ef76c

remove keep tags option

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Clean_bibtex
3
  emoji: 📚
4
  colorFrom: yellow
5
  colorTo: blue
 
1
  ---
2
+ title: Clean BibTeX
3
  emoji: 📚
4
  colorFrom: yellow
5
  colorTo: blue
app.py CHANGED
@@ -13,7 +13,8 @@ def parse_titles(bibtex):
13
  return titles
14
 
15
 
16
- def cleaner(bibtex, keep_keys, file_obj):
 
17
  dblp_citations = []
18
  errors = []
19
 
@@ -46,7 +47,7 @@ iface = gr.Interface(
46
  description="Clean a BibTeX file or string by dragging the incomplete or broken BibTeX file into the file box or pasting a BibTeX string into the string field. The titles are extracted, searched at the DBLP, compiled into a clean BibTeX file.",
47
  inputs=[
48
  gr.inputs.Textbox(label="Paste a string here:", lines=1),
49
- gr.inputs.Checkbox(label="Keep original keys:"),
50
  gr.inputs.File(label="Drag a Bibtex file here:", file_count="single", type="file", optional=True),
51
  ],
52
  outputs=[
 
13
  return titles
14
 
15
 
16
+ # def cleaner(bibtex, keep_keys, file_obj):
17
+ def cleaner(bibtex, file_obj):
18
  dblp_citations = []
19
  errors = []
20
 
 
47
  description="Clean a BibTeX file or string by dragging the incomplete or broken BibTeX file into the file box or pasting a BibTeX string into the string field. The titles are extracted, searched at the DBLP, compiled into a clean BibTeX file.",
48
  inputs=[
49
  gr.inputs.Textbox(label="Paste a string here:", lines=1),
50
+ # gr.inputs.Checkbox(label="Keep original keys:"),
51
  gr.inputs.File(label="Drag a Bibtex file here:", file_count="single", type="file", optional=True),
52
  ],
53
  outputs=[