rlgondong commited on
Commit
5c04691
Β·
verified Β·
1 Parent(s): ee406fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -127,6 +127,11 @@ with gr.Blocks(
127
  text-align: center !important;
128
  padding: 20px !important;
129
  border-radius: 5px !important;
 
 
 
 
 
130
  }
131
  .budget-box {
132
  background-color: #1a1a1a !important;
@@ -134,11 +139,19 @@ with gr.Blocks(
134
  text-align: center !important;
135
  padding: 20px !important;
136
  border-radius: 5px !important;
 
 
 
 
 
137
  }
138
  .button-row button {
 
 
139
  margin: 0 10px !important;
140
  padding: 10px 20px !important;
141
  border-radius: 5px !important;
 
142
  }
143
  """
144
  ) as iface:
@@ -158,7 +171,7 @@ with gr.Blocks(
158
  with gr.Row():
159
  with gr.Column(scale=1):
160
  with gr.Row():
161
- image_input = gr.Image(type="pil", label="Upload Grocery Items 🍎", elem_classes="upload-box", height=200)
162
  budget_input = gr.Number(label="Budget (β‚±) 🍊", value=500.0, precision=2, elem_classes="budget-box")
163
  gallery_output = gr.Gallery(label="Cart Preview", columns=3, height="auto", object_fit="contain")
164
  with gr.Row(elem_classes="button-row"):
 
127
  text-align: center !important;
128
  padding: 20px !important;
129
  border-radius: 5px !important;
130
+ width: 100% !important;
131
+ height: 150px !important;
132
+ display: flex !important;
133
+ flex-direction: column !important;
134
+ justify-content: center !important;
135
  }
136
  .budget-box {
137
  background-color: #1a1a1a !important;
 
139
  text-align: center !important;
140
  padding: 20px !important;
141
  border-radius: 5px !important;
142
+ width: 100% !important;
143
+ height: 150px !important;
144
+ display: flex !important;
145
+ flex-direction: column !important;
146
+ justify-content: center !important;
147
  }
148
  .button-row button {
149
+ background-color: #4a4a4a !important;
150
+ color: #ffffff !important;
151
  margin: 0 10px !important;
152
  padding: 10px 20px !important;
153
  border-radius: 5px !important;
154
+ border: none !important;
155
  }
156
  """
157
  ) as iface:
 
171
  with gr.Row():
172
  with gr.Column(scale=1):
173
  with gr.Row():
174
+ image_input = gr.Image(type="pil", label="Upload Grocery Items 🍎", elem_classes="upload-box", height=150)
175
  budget_input = gr.Number(label="Budget (β‚±) 🍊", value=500.0, precision=2, elem_classes="budget-box")
176
  gallery_output = gr.Gallery(label="Cart Preview", columns=3, height="auto", object_fit="contain")
177
  with gr.Row(elem_classes="button-row"):