tejani commited on
Commit
225e4cd
·
verified ·
1 Parent(s): d616c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -70,17 +70,17 @@ async def try_on(
70
  raise HTTPException(status_code=response.status_code, detail="Error calling ChangeClothesAI API")
71
 
72
  # Delete temporary files
73
- os.remove(human_path)
74
- os.remove(garment_path)
75
 
76
  return response.json()
77
 
78
  except Exception as e:
79
  # Clean up in case of any errors
80
  if os.path.exists(human_path):
81
- os.remove(human_path)
82
  if os.path.exists(garment_path):
83
- os.remove(garment_path)
84
  raise HTTPException(status_code=500, detail=str(e))
85
 
86
  finally:
 
70
  raise HTTPException(status_code=response.status_code, detail="Error calling ChangeClothesAI API")
71
 
72
  # Delete temporary files
73
+ #os.remove(human_path)
74
+ #os.remove(garment_path)
75
 
76
  return response.json()
77
 
78
  except Exception as e:
79
  # Clean up in case of any errors
80
  if os.path.exists(human_path):
81
+ #os.remove(human_path)
82
  if os.path.exists(garment_path):
83
+ #os.remove(garment_path)
84
  raise HTTPException(status_code=500, detail=str(e))
85
 
86
  finally: