Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def to_html(document):
|
|
32 |
|
33 |
|
34 |
def upload_file(file, paper_type):
|
35 |
-
command = f"python3 aclpubcheck-main/aclpubcheck/formatchecker.py --paper_type {paper_type} {file.name.replace(
|
36 |
out = subprocess.run(command, shell=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.STDOUT)
|
37 |
return to_html(remove_color_codes(out.stdout))
|
38 |
|
|
|
32 |
|
33 |
|
34 |
def upload_file(file, paper_type):
|
35 |
+
command = f"python3 aclpubcheck-main/aclpubcheck/formatchecker.py --paper_type {paper_type} {file.name.replace(' ', '\ ')}"
|
36 |
out = subprocess.run(command, shell=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.STDOUT)
|
37 |
return to_html(remove_color_codes(out.stdout))
|
38 |
|