aflyrt commited on
Commit
2540c14
·
verified ·
1 Parent(s): 8011e20

Update interior design.py

Browse files
Files changed (1) hide show
  1. interior design.py +14 -11
interior design.py CHANGED
@@ -21,18 +21,21 @@ def image_fusion():
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.Button("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()
 
21
  with gr.Blocks() as main:
22
  with gr.Row():
23
  with gr.Column():
24
+ gr.Markdown("请上传两张同一房间,不同角度的照片")
25
+ with gr.Group():
26
+ photo_input1 = gr.Image(label = "photo1", show_label = True, interactive = True)
27
+ photo_input2 = gr.Image(label = "photo2", show_label = True, interactive = True)
28
+ radio = gr.Radio(["复古风格","现代风格","田园风格","波西米亚","极简主义"],label = "选择你想要的房间风格")
29
+ generate_btn = gr.Button("生成!")
30
  with gr.Column():
31
+ gr.Markdown("请在下面的图片中框选出希望家具出现的位置,并在文本指令中输入对家具的描述,用分号分隔")
32
+ with gr.Group():
33
+ image_output1 = gr.ImageEditor(label = "generated_image")
34
+ gr.Textbox(label = "文本指令",info = "用分号(;)分隔")
35
+ gen_btn = gr.Button("完成了")
36
  with gr.Column():
37
+ gr.Markdown("生成结果,可下载和分享")
38
+ result1 = gr.Image(label = "generated_result1",interactive = False)
39
+ result2 = gr.Image(label = "generated_result2",interactive = False)
40
 
41
  main.launch()