mrshu commited on
Commit
cb23517
·
verified ·
1 Parent(s): 8be149d

Update app.py

Browse files

Use `aclpubcheck` directly as installed from the package

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def upload_file(file, paper_type):
56
  file_name_cmd = file.name.replace(" ", "\ ")
57
  file_name = get_filename(file.name)
58
  clear_cached_images(file_name)
59
- command = f"python3 aclpubcheck-main/aclpubcheck/formatchecker.py --paper_type {paper_type} {file_name_cmd}"
60
  out = subprocess.run(command, shell=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.STDOUT)
61
  return to_html(remove_color_codes(out.stdout)) + add_images(file_name)
62
 
 
56
  file_name_cmd = file.name.replace(" ", "\ ")
57
  file_name = get_filename(file.name)
58
  clear_cached_images(file_name)
59
+ command = f"aclpubcheck --paper_type {paper_type} {file_name_cmd}"
60
  out = subprocess.run(command, shell=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.STDOUT)
61
  return to_html(remove_color_codes(out.stdout)) + add_images(file_name)
62