Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,11 +100,6 @@ def virtual_tryon(person_img, garment_img, garment_des, seed, randomize_seed, de
|
|
100 |
time.sleep(60)
|
101 |
|
102 |
|
103 |
-
# Fungsi untuk menampilkan pesan popup dan menunda eksekusi
|
104 |
-
def show_popup_and_wait():
|
105 |
-
gr.alert("Ruang ganti kami terbatas. Mohon menunggu antreannya.")
|
106 |
-
time.sleep(60) # Menunggu selama 1 menit
|
107 |
-
|
108 |
# Path untuk contoh gambar
|
109 |
example_path = os.path.join(os.path.dirname(__file__), 'assets')
|
110 |
|
@@ -190,12 +185,6 @@ with gr.Blocks(css=css, theme=IndonesiaTheme()) as TokoBajuVirtual:
|
|
190 |
inputs=[person_img, garment_img, garment_des, seed, randomize_seed, denoise_steps, is_checked, is_checked_crop],
|
191 |
outputs=[result_img, result_info]
|
192 |
)
|
193 |
-
# Tambahkan penundaan setelah klik dan pesan popup
|
194 |
-
run_button.click(
|
195 |
-
fn=show_popup_and_wait, # Menampilkan popup dan menunda eksekusi
|
196 |
-
inputs=[],
|
197 |
-
outputs=[]
|
198 |
-
)
|
199 |
|
200 |
# Tambahkan footer di bagian bawah
|
201 |
gr.HTML("""
|
|
|
100 |
time.sleep(60)
|
101 |
|
102 |
|
|
|
|
|
|
|
|
|
|
|
103 |
# Path untuk contoh gambar
|
104 |
example_path = os.path.join(os.path.dirname(__file__), 'assets')
|
105 |
|
|
|
185 |
inputs=[person_img, garment_img, garment_des, seed, randomize_seed, denoise_steps, is_checked, is_checked_crop],
|
186 |
outputs=[result_img, result_info]
|
187 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
|
189 |
# Tambahkan footer di bagian bawah
|
190 |
gr.HTML("""
|