nguyen-brat commited on
Commit
ddec341
·
1 Parent(s): a5e19ff
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -25,8 +25,6 @@ def GET_PROJECT_ROOT():
25
  current_abspath = os.path.dirname(current_abspath)
26
  return project_root
27
 
28
- PROJECT_ROOT = GET_PROJECT_ROOT()
29
-
30
  def run_bash_script(input_image_path, output_path, progress_placeholder, status_text):
31
  bash_command = f"bash config/text_detection.sh -s {input_image_path} -t {output_path}"
32
  process = subprocess.Popen(bash_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
@@ -86,7 +84,8 @@ def create_temp_structure():
86
  return temp_dir, test_folder, target_folder
87
 
88
  st.title("Text Detection App")
89
-
 
90
  uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
91
 
92
  if uploaded_file is not None:
 
25
  current_abspath = os.path.dirname(current_abspath)
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)
 
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: