Spaces:
Runtime error
Runtime error
Added Markdown for Prompt
Browse files
app.py
CHANGED
@@ -38,13 +38,13 @@ with gr.Blocks() as demo:
|
|
38 |
gr.Markdown('# Try On Clothes Online!')
|
39 |
gr.Markdown('## Add Your Image via an Image URL or By Simply Uploading it')
|
40 |
gr.Markdown('## Paste in a link of a Product from Flipkart, Amazon or Myntra and See the Preview! You can also paste in any Image link!')
|
41 |
-
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
image = gr.inputs.Image(type = "filepath", label = "Input Image")
|
45 |
# image_url = gr.inputs.Textbox(label = "Input Image URL")
|
46 |
cloth_url = gr.inputs.Textbox(label = "Cloth Image URL")
|
47 |
-
prompt = gr.inputs.Textbox(label="
|
48 |
output = gr.outputs.Image(type = "pil", label="Generated Image")
|
49 |
run = gr.Button(label="Generate Preview")
|
50 |
run.click(generate_with_mask_, inputs=[image, cloth_url, prompt], outputs=output)
|
|
|
38 |
gr.Markdown('# Try On Clothes Online!')
|
39 |
gr.Markdown('## Add Your Image via an Image URL or By Simply Uploading it')
|
40 |
gr.Markdown('## Paste in a link of a Product from Flipkart, Amazon or Myntra and See the Preview! You can also paste in any Image link!')
|
41 |
+
gr.Markdown('## Optionally you can add a prompt to generate an image instead of using an example image.')
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
image = gr.inputs.Image(type = "filepath", label = "Input Image")
|
45 |
# image_url = gr.inputs.Textbox(label = "Input Image URL")
|
46 |
cloth_url = gr.inputs.Textbox(label = "Cloth Image URL")
|
47 |
+
prompt = gr.inputs.Textbox(label="Optional Prompt")
|
48 |
output = gr.outputs.Image(type = "pil", label="Generated Image")
|
49 |
run = gr.Button(label="Generate Preview")
|
50 |
run.click(generate_with_mask_, inputs=[image, cloth_url, prompt], outputs=output)
|