Ankur Goyal commited on
Commit
3a4d71f
1 Parent(s): 66c9f11

Add some margin

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -197,6 +197,7 @@ CSS = """
197
  padding-bottom: 2px !important;
198
  padding-left: 8px !important;
199
  padding-right: 8px !important;
 
200
  }
201
  .gradio-container .gr-button-primary {
202
  background: linear-gradient(180deg, #CDF9BE 0%, #AFF497 100%);
@@ -235,6 +236,16 @@ gradio-app div div div div.w-full, .gradio-app div div div div.w-full {
235
  gradio-app h2, .gradio-app h2 {
236
  padding-top: 10px;
237
  }
 
 
 
 
 
 
 
 
 
 
238
  """
239
 
240
  with gr.Blocks(css=CSS) as demo:
@@ -297,7 +308,7 @@ with gr.Blocks(css=CSS) as demo:
297
  "Submit", variant="primary", elem_id="submit-button"
298
  )
299
  with gr.Column():
300
- output_text = gr.Textbox(label="Top Answer", visible=False)
301
  output = gr.JSON(label="Output", visible=False)
302
 
303
  img_clear_button.click(
 
197
  padding-bottom: 2px !important;
198
  padding-left: 8px !important;
199
  padding-right: 8px !important;
200
+ margin-top: 10px;
201
  }
202
  .gradio-container .gr-button-primary {
203
  background: linear-gradient(180deg, #CDF9BE 0%, #AFF497 100%);
 
236
  gradio-app h2, .gradio-app h2 {
237
  padding-top: 10px;
238
  }
239
+
240
+ #answer {
241
+ overflow-y: scroll;
242
+ height: 42px;
243
+ color: white;
244
+ background: #666;
245
+ border-color: #666;
246
+ font-size: 20px;
247
+ font-weight: bold;
248
+ }
249
  """
250
 
251
  with gr.Blocks(css=CSS) as demo:
 
308
  "Submit", variant="primary", elem_id="submit-button"
309
  )
310
  with gr.Column():
311
+ output_text = gr.Textbox(label="Top Answer", visible=False, elem_id="answer")
312
  output = gr.JSON(label="Output", visible=False)
313
 
314
  img_clear_button.click(