patrickligardes commited on
Commit
a758e58
β€’
1 Parent(s): 963f36d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -124,7 +124,14 @@ pipe.unet_encoder = UNet_Encoder
124
  @spaces.GPU
125
  def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed, category):
126
  device = "cuda"
 
 
 
127
 
 
 
 
 
128
  openpose_model.preprocessor.body_estimation.model.to(device)
129
  pipe.to(device)
130
  pipe.unet_encoder.to(device)
 
124
  @spaces.GPU
125
  def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed, category):
126
  device = "cuda"
127
+ category = int(category)
128
+ if category==0:
129
+ category='upper_body'
130
 
131
+ elif category==1:
132
+ category='lower_body'
133
+ else:
134
+ category='dresses'
135
  openpose_model.preprocessor.body_estimation.model.to(device)
136
  pipe.to(device)
137
  pipe.unet_encoder.to(device)