Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ warnings.filterwarnings("ignore")
|
|
| 197 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 198 |
|
| 199 |
# Google Drive model setup
|
| 200 |
-
file_id = "12_fsSQgUfOCAPQaDtq2QPCLE74qTQEwt"
|
| 201 |
output_path = "dress_model.pkl"
|
| 202 |
|
| 203 |
# Download the model if it's not present
|
|
@@ -306,7 +306,7 @@ with gr.Blocks(title="Style Mixing for Clothing Design") as iface:
|
|
| 306 |
image1_input = gr.Image(label="First Clothing Image", type="filepath")
|
| 307 |
image2_input = gr.Image(label="Second Clothing Image", type="filepath")
|
| 308 |
|
| 309 |
-
mix_slider = gr.Slider(label="Style Mixing Strength
|
| 310 |
|
| 311 |
with gr.Row():
|
| 312 |
output_image = gr.Image(label="Mixed Clothing Design")
|
|
|
|
| 197 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 198 |
|
| 199 |
# Google Drive model setup
|
| 200 |
+
file_id = "12_fsSQgUfOCAPQaDtq2QPCLE74qTQEwt"
|
| 201 |
output_path = "dress_model.pkl"
|
| 202 |
|
| 203 |
# Download the model if it's not present
|
|
|
|
| 306 |
image1_input = gr.Image(label="First Clothing Image", type="filepath")
|
| 307 |
image2_input = gr.Image(label="Second Clothing Image", type="filepath")
|
| 308 |
|
| 309 |
+
mix_slider = gr.Slider(label="Style Mixing Strength", minimum=0, maximum=9, step=1, value=5)
|
| 310 |
|
| 311 |
with gr.Row():
|
| 312 |
output_image = gr.Image(label="Mixed Clothing Design")
|