Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,13 +23,16 @@ with gr.Blocks() as casa:
|
|
23 |
description = "A Gradio interface to use CasaAI for virtual staging"
|
24 |
|
25 |
with gr.Tab("ReImagine"):
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
33 |
|
34 |
|
35 |
with gr.Tab("ReDesign"):
|
@@ -38,7 +41,7 @@ with gr.Blocks() as casa:
|
|
38 |
with gr.Tab("Recommendation"):
|
39 |
pass
|
40 |
|
41 |
-
|
42 |
|
43 |
|
44 |
# demo = gr.Interface(casa_ai_run,
|
|
|
23 |
description = "A Gradio interface to use CasaAI for virtual staging"
|
24 |
|
25 |
with gr.Tab("ReImagine"):
|
26 |
+
with gr.Row():
|
27 |
+
with gr.Column():
|
28 |
+
inputs = [
|
29 |
+
gr.ImageEditor(sources='upload', brush=gr.Brush(colors=["#FFFFFF"]), elem_id="image_upload", type="pil", label="Upload", layers=False, eraser=True, transforms=[]),
|
30 |
+
gr.Textbox(label="Prompt to design room")]
|
31 |
+
with gr.Column():
|
32 |
+
outputs = [gr.Image(label="Generated room image")]
|
33 |
+
|
34 |
+
submit_btn = gr.Button("Submit")
|
35 |
+
submit_btn.click(casa_ai_run, inputs=inputs, outputs=outputs)
|
36 |
|
37 |
|
38 |
with gr.Tab("ReDesign"):
|
|
|
41 |
with gr.Tab("Recommendation"):
|
42 |
pass
|
43 |
|
44 |
+
|
45 |
|
46 |
|
47 |
# demo = gr.Interface(casa_ai_run,
|