aryrk commited on
Commit
8130b3c
·
1 Parent(s): 7d12d7e

[more debbuging]

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -25,13 +25,12 @@ if not os.path.exists(expected_model_path):
25
 
26
  def reflection_removal(input_images):
27
  for input_image in input_images:
28
- file_path = os.path.join(UPLOAD_DIR, input_image.name)
29
-
30
- with open(input_image.name, "rb") as f:
31
- image = Image.open(f)
32
- image.save(file_path)
33
 
34
  print("Isi direktori uploaded_images:", os.listdir(UPLOAD_DIR))
 
35
 
36
  cmd = [
37
  "python", "test.py",
 
25
 
26
  def reflection_removal(input_images):
27
  for input_image in input_images:
28
+ file_path = os.path.join(UPLOAD_DIR, os.path.basename(input_image.name))
29
+ print(f"Menyimpan file {input_image.name} ke {file_path}")
30
+ shutil.copy(input_image.name, file_path)
 
 
31
 
32
  print("Isi direktori uploaded_images:", os.listdir(UPLOAD_DIR))
33
+ print("Input images:", input_images)
34
 
35
  cmd = [
36
  "python", "test.py",