clement-bonnet commited on
Commit
63ae026
·
1 Parent(s): ba5567b

feat: place optimal latent button better

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -72,6 +72,7 @@ with gr.Blocks(
72
  .coordinate-container {
73
  width: 600px !important;
74
  height: 600px !important;
 
75
  }
76
  .coordinate-container img {
77
  width: 100% !important;
@@ -84,12 +85,15 @@ with gr.Blocks(
84
  background-color: #f8f9fa !important;
85
  border-radius: 8px !important;
86
  }
 
 
 
 
 
87
  .optimal-button {
88
  margin-top: 1rem !important;
89
  margin-bottom: 1rem !important;
90
  width: 200px !important;
91
- margin-left: auto !important;
92
- margin-right: auto !important;
93
  }
94
  """
95
  ) as demo:
@@ -150,8 +154,7 @@ with gr.Blocks(
150
  show_fullscreen_button=False,
151
  )
152
 
153
- # Add the Find Optimal Latent button with a container for centering
154
- with gr.Column():
155
  optimal_button = gr.Button("Find Optimal Latent", elem_classes="optimal-button")
156
 
157
  # Documentation section
 
72
  .coordinate-container {
73
  width: 600px !important;
74
  height: 600px !important;
75
+ position: relative !important;
76
  }
77
  .coordinate-container img {
78
  width: 100% !important;
 
85
  background-color: #f8f9fa !important;
86
  border-radius: 8px !important;
87
  }
88
+ .button-container {
89
+ display: flex !important;
90
+ justify-content: center !important;
91
+ width: 600px !important; /* Match coordinate container width */
92
+ }
93
  .optimal-button {
94
  margin-top: 1rem !important;
95
  margin-bottom: 1rem !important;
96
  width: 200px !important;
 
 
97
  }
98
  """
99
  ) as demo:
 
154
  show_fullscreen_button=False,
155
  )
156
 
157
+ with gr.Column(elem_classes="button-container"):
 
158
  optimal_button = gr.Button("Find Optimal Latent", elem_classes="optimal-button")
159
 
160
  # Documentation section