Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUse `aclpubcheck` directly as installed from the package
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"
|
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 |
|