Spaces:
Running
Running
Update app.py
Browse files
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
|
48 |
-
|
49 |
-
client = Client(
|
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)
|