Spaces:
No application file
No application file
Update interior design.py
Browse files- interior design.py +11 -9
interior design.py
CHANGED
|
@@ -18,19 +18,21 @@ def convert_3d_to_2d():
|
|
| 18 |
def image_fusion():
|
| 19 |
return None
|
| 20 |
|
| 21 |
-
with gr.
|
| 22 |
with gr.Row():
|
| 23 |
with gr.Column():
|
| 24 |
-
photo_input1 = gr.Image(
|
| 25 |
-
photo_input2 = gr.Image(
|
| 26 |
-
radio = gr.Radio(["Vintage","Contmporary","Cottage","Bohemian","Minimalist"],
|
| 27 |
generate_btn = gr.Button("Generate")
|
| 28 |
with gr.Column():
|
| 29 |
-
image_output1 = gr.Image(
|
| 30 |
-
gr.
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
with gr.Column():
|
| 33 |
-
result1 = gr.Image(
|
| 34 |
-
result2 = gr.Image(
|
| 35 |
|
| 36 |
main.launch()
|
|
|
|
| 18 |
def image_fusion():
|
| 19 |
return None
|
| 20 |
|
| 21 |
+
with gr.Blocks() as main:
|
| 22 |
with gr.Row():
|
| 23 |
with gr.Column():
|
| 24 |
+
photo_input1 = gr.Image("photo1")
|
| 25 |
+
photo_input2 = gr.Image("photo2")
|
| 26 |
+
radio = gr.Radio(["Vintage","Contmporary","Cottage","Bohemian","Minimalist"],label = "choose your style")
|
| 27 |
generate_btn = gr.Button("Generate")
|
| 28 |
with gr.Column():
|
| 29 |
+
image_output1 = gr.Image("image1")
|
| 30 |
+
with gr.Row():
|
| 31 |
+
gr.Textbox(label = "instrucation")
|
| 32 |
+
gen_btn = gr.Image("Finished")
|
| 33 |
+
image_output2 = gr.Image("image2")
|
| 34 |
with gr.Column():
|
| 35 |
+
result1 = gr.Image("result1")
|
| 36 |
+
result2 = gr.Image("result2")
|
| 37 |
|
| 38 |
main.launch()
|