Dharini Baskaran commited on
Commit
5a5448a
·
1 Parent(s): 438a23e

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -144,12 +144,15 @@ if uploaded_file is not None:
144
  progress_bar.progress(i)
145
  status_text.text(f"Preprocessing: {i}%")
146
 
147
- main(cfg, input_image, output_json_name, output_image_name)
148
- print("✅ Model run complete.")
149
 
150
- # Prepare output paths
151
  output_json_path = os.path.join(JSON_DIR, output_json_name)
152
  output_image_path = os.path.join(JSON_DIR, output_image_name)
 
 
 
 
 
 
153
 
154
  while not os.path.exists(output_json_path):
155
  print("Waiting for JSON output...")
 
144
  progress_bar.progress(i)
145
  status_text.text(f"Preprocessing: {i}%")
146
 
 
 
147
 
 
148
  output_json_path = os.path.join(JSON_DIR, output_json_name)
149
  output_image_path = os.path.join(JSON_DIR, output_image_name)
150
+ main(cfg, input_image, output_json_path, output_image_path)
151
+ print("✅ Model run complete.")
152
+ # main(cfg, input_image, output_json_name, output_image_name)
153
+ # # Prepare output paths
154
+ # output_json_path = os.path.join(JSON_DIR, output_json_name)
155
+ # output_image_path = os.path.join(JSON_DIR, output_image_name)
156
 
157
  while not os.path.exists(output_json_path):
158
  print("Waiting for JSON output...")