Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def generate_outfit(model_image, garment_image, n_samples=1, n_steps=20, image_s
|
|
63 |
|
64 |
# Create Gradio interface
|
65 |
with gr.Blocks() as demo:
|
66 |
-
|
67 |
## Outfit Diffusion - Try On Virtual Outfits
|
68 |
|
69 |
⚠️ **Note**: This demo uses free GPU quota which is limited. To avoid errors:
|
@@ -73,6 +73,7 @@ with gr.Blocks() as demo:
|
|
73 |
|
74 |
|
75 |
""")
|
|
|
76 |
with gr.Row():
|
77 |
with gr.Column():
|
78 |
model_image = gr.Image(
|
@@ -137,7 +138,7 @@ with gr.Blocks() as demo:
|
|
137 |
value=-1
|
138 |
)
|
139 |
|
140 |
-
generate_button = gr.Button("
|
141 |
|
142 |
# Set up the action for the button
|
143 |
generate_button.click(
|
@@ -147,5 +148,4 @@ with gr.Blocks() as demo:
|
|
147 |
)
|
148 |
|
149 |
# Launch the app
|
150 |
-
|
151 |
-
demo.launch(show_error=True)
|
|
|
63 |
|
64 |
# Create Gradio interface
|
65 |
with gr.Blocks() as demo:
|
66 |
+
gr.Markdown("""
|
67 |
## Outfit Diffusion - Try On Virtual Outfits
|
68 |
|
69 |
⚠️ **Note**: This demo uses free GPU quota which is limited. To avoid errors:
|
|
|
73 |
|
74 |
|
75 |
""")
|
76 |
+
|
77 |
with gr.Row():
|
78 |
with gr.Column():
|
79 |
model_image = gr.Image(
|
|
|
138 |
value=-1
|
139 |
)
|
140 |
|
141 |
+
generate_button = gr.Button("Generate Outfit")
|
142 |
|
143 |
# Set up the action for the button
|
144 |
generate_button.click(
|
|
|
148 |
)
|
149 |
|
150 |
# Launch the app
|
151 |
+
demo.launch()
|
|