Deddy commited on
Commit
ecafc46
Β·
verified Β·
1 Parent(s): 0f1a7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,9 +44,9 @@ def save_temp_image(image_array):
44
 
45
  # Fungsi untuk memanggil API Virtual Try-On
46
  def virtual_tryon(person_img, garment_img, garment_des, seed, randomize_seed, denoise_steps, is_checked, is_checked_crop):
47
- # Pilih API secara acak antara dua URL
48
- url_api = random.choice(["Nymbo/Virtual-Try-On", "yisol/IDM-VTON"])
49
- client = Client(url_api)
50
 
51
  # Simpan gambar sementara
52
  person_img_path = save_temp_image(person_img)
 
44
 
45
  # Fungsi untuk memanggil API Virtual Try-On
46
  def virtual_tryon(person_img, garment_img, garment_des, seed, randomize_seed, denoise_steps, is_checked, is_checked_crop):
47
+ # Pilih URL secara acak
48
+ selected_api_url = get_random_api_url()
49
+ client = Client(selected_api_url)
50
 
51
  # Simpan gambar sementara
52
  person_img_path = save_temp_image(person_img)