Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,9 +117,48 @@ def pipeline(image):
|
|
| 117 |
)
|
| 118 |
|
| 119 |
# --- GRADIO BLOCKS UI ---
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
""") as demo:
|
| 124 |
gr.Markdown("# Wildfire Detection & Management Assistant")
|
| 125 |
gr.Markdown("Upload a forest image from Pakistan; the system will detect fire, assess severity, analyze weather trends, and provide in-depth recommendations.")
|
|
|
|
| 117 |
)
|
| 118 |
|
| 119 |
# --- GRADIO BLOCKS UI ---
|
| 120 |
+
withwith gr.Blocks(css="""
|
| 121 |
+
/* background for entire app */
|
| 122 |
+
.gradio-container {
|
| 123 |
+
background-color: #f5f7fa !important;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/* style each of the three Textbox outputs */
|
| 127 |
+
.gradio-textbox textarea {
|
| 128 |
+
background-color: #ffffff !important;
|
| 129 |
+
border: 1px solid #cbd2d9 !important;
|
| 130 |
+
border-radius: 8px !important;
|
| 131 |
+
padding: 12px !important;
|
| 132 |
+
font-size: 1rem !important;
|
| 133 |
+
color: #333333 !important;
|
| 134 |
+
min-height: 3em !important;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
/* style the Accordion panel */
|
| 138 |
+
.gradio-accordion {
|
| 139 |
+
background-color: #ffffff !important;
|
| 140 |
+
border: 1px solid #cbd2d9 !important;
|
| 141 |
+
border-radius: 8px !important;
|
| 142 |
+
padding: 8px !important;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
/* style the Analyze button */
|
| 146 |
+
.gradio-button {
|
| 147 |
+
background-color: #0072ce !important;
|
| 148 |
+
color: white !important;
|
| 149 |
+
border-radius: 6px !important;
|
| 150 |
+
padding: 8px 16px !important;
|
| 151 |
+
font-weight: 600 !important;
|
| 152 |
+
}
|
| 153 |
+
.gradio-button:hover {
|
| 154 |
+
background-color: #005bb5 !important;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* section headers */
|
| 158 |
+
.gradio-markdown h1, .gradio-markdown h2 {
|
| 159 |
+
color: #1f2937 !important;
|
| 160 |
+
margin-bottom: 0.5em !important;
|
| 161 |
+
}
|
| 162 |
""") as demo:
|
| 163 |
gr.Markdown("# Wildfire Detection & Management Assistant")
|
| 164 |
gr.Markdown("Upload a forest image from Pakistan; the system will detect fire, assess severity, analyze weather trends, and provide in-depth recommendations.")
|