Sijuade commited on
Commit
18a36b2
1 Parent(s): f8ac765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
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
- inputs = [
27
- gr.ImageEditor(sources='upload', brush=gr.Brush(colors=["#FFFFFF"]), elem_id="image_upload", type="pil", label="Upload", layers=False, eraser=True, transforms=[]),
28
- gr.Textbox(label="Prompt to design room")]
29
-
30
- outputs = [gr.Image(label="Generated room image")]
31
-
32
- submit_btn = gr.Button("Submit")
 
 
 
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
- submit_btn.click(casa_ai_run, inputs=inputs, outputs=outputs)
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,