Spaces:
Running
Running
Flavio de Oliveira
commited on
Commit
•
815b94d
1
Parent(s):
a95b69d
Update executable command
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def predict(input_image: Image.Image):
|
|
32 |
yaml.dump(config_data, f)
|
33 |
|
34 |
try:
|
35 |
-
subprocess.run("pylaia-htr-decode-ctc --config
|
36 |
except subprocess.CalledProcessError as e:
|
37 |
print(f"Command failed with error {e.returncode}, output:\n{e.output}")
|
38 |
|
|
|
32 |
yaml.dump(config_data, f)
|
33 |
|
34 |
try:
|
35 |
+
subprocess.run(f"pylaia-htr-decode-ctc --config {temp_config_path} | tee predict.txt", shell=True, check=True)
|
36 |
except subprocess.CalledProcessError as e:
|
37 |
print(f"Command failed with error {e.returncode}, output:\n{e.output}")
|
38 |
|