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