Rahil Parikh commited on
Commit
86deb76
·
1 Parent(s): b8668f0

fix CSS styling

Browse files
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -827,10 +827,30 @@ def predict_all_diameters(image_path):
827
  <div>
828
  """
829
 
830
- # return result_text, vis_rgb # Return both text and image
831
  return result_text
832
 
833
- with gr.Blocks(title="Glaucoma Predictor", css="""#image_box, #prediction_button, #results_table, #results_container {max-width: 1100px !important;margin-left: auto;margin-right: auto;}""") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  gr.Markdown(
835
  """
836
  <div style="text-align: center; font-size: 24px; font-weight: bold;">
 
827
  <div>
828
  """
829
 
 
830
  return result_text
831
 
832
+
833
+ custom_css = """
834
+ #container_1100, #image_box, #prediction_button, #results_container {
835
+ max-width: 1100px !important;
836
+ margin-left: auto !important;
837
+ margin-right: auto !important;
838
+ }
839
+
840
+ .center_text {
841
+ text-align: center !important;
842
+ }
843
+
844
+ .abstract_block {
845
+ text-align: justify !important;
846
+ max-width: 1100px !important;
847
+ margin-left: auto !important;
848
+ margin-right: auto !important;
849
+ font-size: 15px;
850
+ }
851
+ """
852
+
853
+ with gr.Blocks(title="Glaucoma Predictor", css=custom_css) as demo:
854
  gr.Markdown(
855
  """
856
  <div style="text-align: center; font-size: 24px; font-weight: bold;">