LouisLi commited on
Commit
de66509
·
verified ·
1 Parent(s): bcbe402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -30
app.py CHANGED
@@ -2034,36 +2034,36 @@ def create_ui():
2034
  multiselect=True,
2035
  label="Score", info="Please sort the pictures according to your preference"
2036
  )
2037
-
2038
- gallery_result = gr.Gallery(
2039
- label="Recommendations Based on Item",
2040
- height="auto",
2041
- columns=2
2042
- # columns=4,
2043
- # rows=2,
2044
- # show_label=False,
2045
- # allow_preview=True,
2046
- # object_fit="contain",
2047
- # height="auto",
2048
- # preview=True,
2049
- # show_share_button=True,
2050
- # show_download_button=True
2051
- )
2052
-
2053
- style_gallery_result = gr.Gallery(
2054
- label="Recommendations Based on Style",
2055
- height="auto",
2056
- columns=2
2057
- # columns=4,
2058
- # rows=2,
2059
- # show_label=False,
2060
- # allow_preview=True,
2061
- # object_fit="contain",
2062
- # height="auto",
2063
- # preview=True,
2064
- # show_share_button=True,
2065
- # show_download_button=True
2066
- )
2067
 
2068
 
2069
  with gr.Column(scale=4,visible=False) as reco_reasons:
 
2034
  multiselect=True,
2035
  label="Score", info="Please sort the pictures according to your preference"
2036
  )
2037
+ with gr.Column(scale=3):
2038
+ gallery_result = gr.Gallery(
2039
+ label="Recommendations Based on Item",
2040
+ height="auto",
2041
+ columns=2
2042
+ # columns=4,
2043
+ # rows=2,
2044
+ # show_label=False,
2045
+ # allow_preview=True,
2046
+ # object_fit="contain",
2047
+ # height="auto",
2048
+ # preview=True,
2049
+ # show_share_button=True,
2050
+ # show_download_button=True
2051
+ )
2052
+ with gr.Column(scale=3):
2053
+ style_gallery_result = gr.Gallery(
2054
+ label="Recommendations Based on Style",
2055
+ height="auto",
2056
+ columns=2
2057
+ # columns=4,
2058
+ # rows=2,
2059
+ # show_label=False,
2060
+ # allow_preview=True,
2061
+ # object_fit="contain",
2062
+ # height="auto",
2063
+ # preview=True,
2064
+ # show_share_button=True,
2065
+ # show_download_button=True
2066
+ )
2067
 
2068
 
2069
  with gr.Column(scale=4,visible=False) as reco_reasons: