Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,7 +242,7 @@ def app_gradio():
|
|
| 242 |
@media (max-width: 768px) {
|
| 243 |
.gr-column {
|
| 244 |
width: 100% !important;
|
| 245 |
-
padding: 0.5rem
|
| 246 |
}
|
| 247 |
.gr-row {
|
| 248 |
flex-direction: column !important;
|
|
@@ -255,23 +255,19 @@ def app_gradio():
|
|
| 255 |
padding: 0.8rem 1rem;
|
| 256 |
font-size: 1rem;
|
| 257 |
}
|
| 258 |
-
.gr-image {
|
| 259 |
-
width: 100% !important;
|
| 260 |
-
}
|
| 261 |
}
|
| 262 |
|
| 263 |
@media (max-width: 480px) {
|
| 264 |
.gr-slider, .gr-radio-group, .gr-markdown, .gr-accordion {
|
| 265 |
font-size: 0.9rem !important;
|
| 266 |
-
padding: 0.5rem
|
| 267 |
}
|
| 268 |
button.primary-btn {
|
| 269 |
-
font-size: 0.8rem
|
| 270 |
-
padding: 0.6rem 0.8rem
|
| 271 |
}
|
| 272 |
-
.gr-
|
| 273 |
-
|
| 274 |
-
height: auto !important;
|
| 275 |
}
|
| 276 |
}
|
| 277 |
button.primary-btn {
|
|
@@ -353,8 +349,7 @@ def app_gradio():
|
|
| 353 |
person_image = gr.ImageEditor(
|
| 354 |
interactive=True,
|
| 355 |
label="Upload Your Photo",
|
| 356 |
-
type="filepath"
|
| 357 |
-
elem_classes="gr-image"
|
| 358 |
)
|
| 359 |
|
| 360 |
with gr.Row():
|
|
@@ -362,8 +357,7 @@ def app_gradio():
|
|
| 362 |
cloth_image = gr.Image(
|
| 363 |
interactive=True,
|
| 364 |
label="Select Garment",
|
| 365 |
-
type="filepath"
|
| 366 |
-
lem_classes="gr-image"
|
| 367 |
)
|
| 368 |
with gr.Column(scale=1, min_width="auto"):
|
| 369 |
gr.Markdown(
|
|
@@ -446,7 +440,7 @@ def app_gradio():
|
|
| 446 |
)
|
| 447 |
with gr.Row():
|
| 448 |
root_path = "resource/demo/example"
|
| 449 |
-
with gr.Column(
|
| 450 |
men_exm = gr.Examples(
|
| 451 |
examples=[
|
| 452 |
os.path.join(root_path, "person", "men", _)
|
|
@@ -465,7 +459,7 @@ def app_gradio():
|
|
| 465 |
inputs=image_path,
|
| 466 |
label="Sample Photos - Women",
|
| 467 |
)
|
| 468 |
-
with gr.Column(
|
| 469 |
condition_upper_exm = gr.Examples(
|
| 470 |
examples=[
|
| 471 |
os.path.join(root_path, "condition", "upper", _)
|
|
|
|
| 242 |
@media (max-width: 768px) {
|
| 243 |
.gr-column {
|
| 244 |
width: 100% !important;
|
| 245 |
+
padding: 0.5rem;
|
| 246 |
}
|
| 247 |
.gr-row {
|
| 248 |
flex-direction: column !important;
|
|
|
|
| 255 |
padding: 0.8rem 1rem;
|
| 256 |
font-size: 1rem;
|
| 257 |
}
|
|
|
|
|
|
|
|
|
|
| 258 |
}
|
| 259 |
|
| 260 |
@media (max-width: 480px) {
|
| 261 |
.gr-slider, .gr-radio-group, .gr-markdown, .gr-accordion {
|
| 262 |
font-size: 0.9rem !important;
|
| 263 |
+
padding: 0.5rem;
|
| 264 |
}
|
| 265 |
button.primary-btn {
|
| 266 |
+
font-size: 0.8rem;
|
| 267 |
+
padding: 0.6rem 0.8rem;
|
| 268 |
}
|
| 269 |
+
.gr-form {
|
| 270 |
+
margin: 0.5rem;
|
|
|
|
| 271 |
}
|
| 272 |
}
|
| 273 |
button.primary-btn {
|
|
|
|
| 349 |
person_image = gr.ImageEditor(
|
| 350 |
interactive=True,
|
| 351 |
label="Upload Your Photo",
|
| 352 |
+
type="filepath"
|
|
|
|
| 353 |
)
|
| 354 |
|
| 355 |
with gr.Row():
|
|
|
|
| 357 |
cloth_image = gr.Image(
|
| 358 |
interactive=True,
|
| 359 |
label="Select Garment",
|
| 360 |
+
type="filepath"
|
|
|
|
| 361 |
)
|
| 362 |
with gr.Column(scale=1, min_width="auto"):
|
| 363 |
gr.Markdown(
|
|
|
|
| 440 |
)
|
| 441 |
with gr.Row():
|
| 442 |
root_path = "resource/demo/example"
|
| 443 |
+
with gr.Column():
|
| 444 |
men_exm = gr.Examples(
|
| 445 |
examples=[
|
| 446 |
os.path.join(root_path, "person", "men", _)
|
|
|
|
| 459 |
inputs=image_path,
|
| 460 |
label="Sample Photos - Women",
|
| 461 |
)
|
| 462 |
+
with gr.Column():
|
| 463 |
condition_upper_exm = gr.Examples(
|
| 464 |
examples=[
|
| 465 |
os.path.join(root_path, "condition", "upper", _)
|