Zuii commited on
Commit
a1232f9
·
verified ·
1 Parent(s): f618454

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def tryon(person_img, garment_img, seed, randomize_seed):
86
  retry_delay = 3 # Faster retries now!
87
 
88
  try:
89
- session = requests.Session()
90
 
91
  # 🛠️ Ensure both images are resized to 256x256
92
  person_img = cv2.resize(person_img, (256, 256))
@@ -117,6 +117,7 @@ def tryon(person_img, garment_img, seed, randomize_seed):
117
  print(f"❌ Other error: {err}")
118
  info = "Error, please contact the admin"
119
 
 
120
  example_path = os.path.join(os.path.dirname(__file__), 'assets')
121
 
122
  garm_list = os.listdir(os.path.join(example_path,"cloth"))
 
86
  retry_delay = 3 # Faster retries now!
87
 
88
  try:
89
+ session = requests.Session()
90
 
91
  # 🛠️ Ensure both images are resized to 256x256
92
  person_img = cv2.resize(person_img, (256, 256))
 
117
  print(f"❌ Other error: {err}")
118
  info = "Error, please contact the admin"
119
 
120
+
121
  example_path = os.path.join(os.path.dirname(__file__), 'assets')
122
 
123
  garm_list = os.listdir(os.path.join(example_path,"cloth"))