FJDorfner commited on
Commit
574fc22
·
verified ·
1 Parent(s): 04f372b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -17
app.py CHANGED
@@ -37,34 +37,36 @@ css = """
37
 
38
  h1 {
39
  text-align: center;
40
- display:block;
41
  }
42
- .markdown-block {
43
- background-color: #0b0f1a; /* Light gray background */
44
- color: white !important; /* White text */
45
- padding: 10px; /* Padding around the text */
46
- border-radius: 5px; /* Rounded corners */
 
47
  box-shadow: 0 0 10px rgba(11,15,26,1);
48
- display: inline-flex; /* Use inline-flex to shrink to content size */
49
  flex-direction: column;
50
- justify-content: center; /* Vertically center content */
51
- align-items: center; /* Horizontally center items within */
52
- margin: auto; /* Center the block */
53
  }
54
 
55
- .markdown-block ul, .markdown-block ol {
 
56
  background-color: #1e2936;
57
  border-radius: 5px;
58
- color: white !important;
59
  padding: 10px;
60
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
61
- padding-left: 20px; /* Adjust padding for bullet alignment */
62
- text-align: left; /* Ensure text within list is left-aligned */
63
- list-style-position: inside;/* Ensures bullets/numbers are inside the content flow */
64
  }
65
 
66
  footer {
67
- display:none !important
68
  }
69
  """
70
 
@@ -111,7 +113,7 @@ def predict_image(input_image, input_file):
111
 
112
 
113
 
114
- with gr.Blocks(title="Anatomy Aware axSpA") as iface:
115
 
116
  gr.Markdown("# Anatomy-Aware Image Classification for radiographic axSpA")
117
  #gr.Markdown(description_markdown)
 
37
 
38
  h1 {
39
  text-align: center;
40
+ display: block;
41
  }
42
+
43
+ .gradio-container .styled-block {
44
+ background-color: #0b0f1a;
45
+ color: white !important;
46
+ padding: 10px;
47
+ border-radius: 5px;
48
  box-shadow: 0 0 10px rgba(11,15,26,1);
49
+ display: inline-flex;
50
  flex-direction: column;
51
+ justify-content: center;
52
+ align-items: center;
53
+ margin: auto;
54
  }
55
 
56
+ .gradio-container .styled-block ul,
57
+ .gradio-container .styled-block ol {
58
  background-color: #1e2936;
59
  border-radius: 5px;
60
+ color: white !important;
61
  padding: 10px;
62
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
63
+ padding-left: 20px;
64
+ text-align: left;
65
+ list-style-position: inside;
66
  }
67
 
68
  footer {
69
+ display: none !important;
70
  }
71
  """
72
 
 
113
 
114
 
115
 
116
+ with gr.Blocks(css=css, title="Anatomy Aware axSpA") as iface:
117
 
118
  gr.Markdown("# Anatomy-Aware Image Classification for radiographic axSpA")
119
  #gr.Markdown(description_markdown)