BhumikaMak commited on
Commit
69d0ea0
·
verified ·
1 Parent(s): c17b3db

update: alignment of run button

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -81,17 +81,23 @@ body {
81
  .custom-row {
82
  display: flex;
83
  justify-content: center;
 
84
  padding: 20px;
85
  }
 
86
  .custom-button {
87
  background-color: #6a1b9a;
88
  color: white;
89
- font-size: 14px; /* Reduced font size */
90
- width: 120px; /* Reduced width */
 
91
  border-radius: 8px;
92
  cursor: pointer;
 
 
93
  }
94
 
 
95
  /* Custom border styles for all Gradio components */
96
  .gradio-container, .gradio-row, .gradio-column, .gradio-input, .gradio-image, .gradio-checkgroup, .gradio-button, .gradio-markdown {
97
  border: 3px #800000 !important; /* Border width and color */
@@ -168,7 +174,8 @@ with gr.Blocks(css=custom_css) as interface:
168
  label="Select Model(s)",
169
  )
170
  #with gr.Row(elem_classes="custom-row"):
171
- run_button = gr.Button("Run", elem_classes="custom-button")
 
172
 
173
 
174
  with gr.Column():
 
81
  .custom-row {
82
  display: flex;
83
  justify-content: center;
84
+ align-items: center; /* Ensure vertical centering */
85
  padding: 20px;
86
  }
87
+
88
  .custom-button {
89
  background-color: #6a1b9a;
90
  color: white;
91
+ font-size: 14px;
92
+ width: 120px;
93
+ height: 40px; /* Ensures consistent height */
94
  border-radius: 8px;
95
  cursor: pointer;
96
+ margin: 0 auto; /* Center button within its parent container */
97
+ text-align: center;
98
  }
99
 
100
+
101
  /* Custom border styles for all Gradio components */
102
  .gradio-container, .gradio-row, .gradio-column, .gradio-input, .gradio-image, .gradio-checkgroup, .gradio-button, .gradio-markdown {
103
  border: 3px #800000 !important; /* Border width and color */
 
174
  label="Select Model(s)",
175
  )
176
  #with gr.Row(elem_classes="custom-row"):
177
+ with gr.Row(elem_classes="custom-row"):
178
+ run_button = gr.Button("Run", elem_classes="custom-button")
179
 
180
 
181
  with gr.Column():