Commit
·
7c666af
1
Parent(s):
ddec341
update
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def GET_PROJECT_ROOT():
|
|
26 |
return project_root
|
27 |
|
28 |
def run_bash_script(input_image_path, output_path, progress_placeholder, status_text):
|
29 |
-
bash_command = f"bash config/text_detection.sh -s {input_image_path} -t {output_path}"
|
30 |
process = subprocess.Popen(bash_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
31 |
|
32 |
progress = 0
|
@@ -84,8 +84,6 @@ def create_temp_structure():
|
|
84 |
return temp_dir, test_folder, target_folder
|
85 |
|
86 |
st.title("Text Detection App")
|
87 |
-
cwd = os.getcwd()
|
88 |
-
st.write(f"the current working dir is {cwd}")
|
89 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|
90 |
|
91 |
if uploaded_file is not None:
|
|
|
26 |
return project_root
|
27 |
|
28 |
def run_bash_script(input_image_path, output_path, progress_placeholder, status_text):
|
29 |
+
bash_command = f"bash app/text-remove/config/text_detection.sh -s {input_image_path} -t {output_path}"
|
30 |
process = subprocess.Popen(bash_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
31 |
|
32 |
progress = 0
|
|
|
84 |
return temp_dir, test_folder, target_folder
|
85 |
|
86 |
st.title("Text Detection App")
|
|
|
|
|
87 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|
88 |
|
89 |
if uploaded_file is not None:
|