Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,28 +75,31 @@ css = """
|
|
| 75 |
--background-fill-secondary: #1F2937 !important;
|
| 76 |
}
|
| 77 |
|
| 78 |
-
/* --- Header & Title Styling (
|
| 79 |
#app_header {
|
| 80 |
-
display: flex;
|
| 81 |
-
flex-direction: column;
|
| 82 |
-
align-items: center; /*
|
| 83 |
-
justify-content: center;
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
text-align: center;
|
| 87 |
}
|
|
|
|
| 88 |
#app_title {
|
| 89 |
font-size: 3.2rem !important;
|
| 90 |
font-weight: 800 !important;
|
| 91 |
color: #FFFFFF !important;
|
| 92 |
padding-top: 1rem;
|
| 93 |
-
|
|
|
|
| 94 |
}
|
|
|
|
| 95 |
#app_subtitle {
|
| 96 |
font-size: 1.25rem !important;
|
| 97 |
color: #9CA3AF !important;
|
| 98 |
margin-bottom: 2rem;
|
| 99 |
-
text-align: center;
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
/* --- Layout and Spacing --- */
|
|
@@ -116,6 +119,7 @@ css = """
|
|
| 116 |
}
|
| 117 |
"""
|
| 118 |
|
|
|
|
| 119 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"), css=css, title="Pneumonia Detection AI") as demo:
|
| 120 |
|
| 121 |
with gr.Column() as main_app:
|
|
|
|
| 75 |
--background-fill-secondary: #1F2937 !important;
|
| 76 |
}
|
| 77 |
|
| 78 |
+
/* --- Header & Title Styling (Center Fix) --- */
|
| 79 |
#app_header {
|
| 80 |
+
display: flex !important;
|
| 81 |
+
flex-direction: column !important;
|
| 82 |
+
align-items: center !important; /* center horizontally */
|
| 83 |
+
justify-content: center !important;
|
| 84 |
+
text-align: center !important;
|
| 85 |
+
width: 100% !important;
|
|
|
|
| 86 |
}
|
| 87 |
+
|
| 88 |
#app_title {
|
| 89 |
font-size: 3.2rem !important;
|
| 90 |
font-weight: 800 !important;
|
| 91 |
color: #FFFFFF !important;
|
| 92 |
padding-top: 1rem;
|
| 93 |
+
margin: 0 auto;
|
| 94 |
+
text-align: center !important;
|
| 95 |
}
|
| 96 |
+
|
| 97 |
#app_subtitle {
|
| 98 |
font-size: 1.25rem !important;
|
| 99 |
color: #9CA3AF !important;
|
| 100 |
margin-bottom: 2rem;
|
| 101 |
+
text-align: center !important;
|
| 102 |
+
max-width: 800px; /* keeps text from stretching too wide */
|
| 103 |
}
|
| 104 |
|
| 105 |
/* --- Layout and Spacing --- */
|
|
|
|
| 119 |
}
|
| 120 |
"""
|
| 121 |
|
| 122 |
+
|
| 123 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"), css=css, title="Pneumonia Detection AI") as demo:
|
| 124 |
|
| 125 |
with gr.Column() as main_app:
|