Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def predict(image):
|
|
122 |
# ================== CSS STYLES ==================
|
123 |
custom_css = """
|
124 |
.gradio-container {
|
125 |
-
font-family: 'Times New Roman', Times, serif;
|
126 |
}
|
127 |
|
128 |
.container {
|
@@ -163,16 +163,22 @@ custom_css = """
|
|
163 |
padding: 1.5rem;
|
164 |
margin: 1rem 0;
|
165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
"""
|
167 |
|
168 |
# ================== GRADIO INTERFACE ==================
|
169 |
def create_interface():
|
170 |
with gr.Blocks(css=custom_css, title="WoundWise AI") as demo:
|
171 |
# Logo and Introduction
|
172 |
-
gr.
|
173 |
-
|
174 |
-
|
175 |
-
with gr.Box(class_name="container"):
|
176 |
gr.Markdown("""
|
177 |
In today's fast-paced world, early detection of medical conditions can be a game-changer.
|
178 |
WoundWise AI is a cutting-edge AI-powered wound classification system developed as part
|
@@ -186,7 +192,7 @@ def create_interface():
|
|
186 |
""")
|
187 |
|
188 |
# Main Interface
|
189 |
-
with gr.
|
190 |
gr.Markdown("## 📸 Upload or Capture Wound Image")
|
191 |
gr.Markdown("Use your device's camera or upload an existing image")
|
192 |
|
@@ -208,7 +214,7 @@ def create_interface():
|
|
208 |
)
|
209 |
|
210 |
# Why Care About Wounds
|
211 |
-
with gr.
|
212 |
gr.Markdown("""
|
213 |
## ⚠️ Why Wound Care Matters
|
214 |
|
@@ -223,7 +229,7 @@ def create_interface():
|
|
223 |
""")
|
224 |
|
225 |
# How Our Model Works
|
226 |
-
with gr.
|
227 |
gr.Markdown("""
|
228 |
## 🔬 Our Technology
|
229 |
|
@@ -240,7 +246,7 @@ def create_interface():
|
|
240 |
""")
|
241 |
|
242 |
# Disclaimer
|
243 |
-
with gr.
|
244 |
gr.Markdown("""
|
245 |
## ⚕️ Medical Disclaimer
|
246 |
|
|
|
122 |
# ================== CSS STYLES ==================
|
123 |
custom_css = """
|
124 |
.gradio-container {
|
125 |
+
font-family: 'Times New Roman', Times, serif !important;
|
126 |
}
|
127 |
|
128 |
.container {
|
|
|
163 |
padding: 1.5rem;
|
164 |
margin: 1rem 0;
|
165 |
}
|
166 |
+
|
167 |
+
.guidelines-box {
|
168 |
+
background: #F7FAFC;
|
169 |
+
border-radius: 10px;
|
170 |
+
padding: 1rem;
|
171 |
+
margin-top: 1rem;
|
172 |
+
}
|
173 |
"""
|
174 |
|
175 |
# ================== GRADIO INTERFACE ==================
|
176 |
def create_interface():
|
177 |
with gr.Blocks(css=custom_css, title="WoundWise AI") as demo:
|
178 |
# Logo and Introduction
|
179 |
+
with gr.Column(elem_classes="container"):
|
180 |
+
gr.Image("logo.png", show_label=False, container=False)
|
181 |
+
gr.Markdown("# Welcome to WoundWise AI")
|
|
|
182 |
gr.Markdown("""
|
183 |
In today's fast-paced world, early detection of medical conditions can be a game-changer.
|
184 |
WoundWise AI is a cutting-edge AI-powered wound classification system developed as part
|
|
|
192 |
""")
|
193 |
|
194 |
# Main Interface
|
195 |
+
with gr.Column(elem_classes="container"):
|
196 |
gr.Markdown("## 📸 Upload or Capture Wound Image")
|
197 |
gr.Markdown("Use your device's camera or upload an existing image")
|
198 |
|
|
|
214 |
)
|
215 |
|
216 |
# Why Care About Wounds
|
217 |
+
with gr.Column(elem_classes="info-section"):
|
218 |
gr.Markdown("""
|
219 |
## ⚠️ Why Wound Care Matters
|
220 |
|
|
|
229 |
""")
|
230 |
|
231 |
# How Our Model Works
|
232 |
+
with gr.Column(elem_classes="info-section"):
|
233 |
gr.Markdown("""
|
234 |
## 🔬 Our Technology
|
235 |
|
|
|
246 |
""")
|
247 |
|
248 |
# Disclaimer
|
249 |
+
with gr.Column(elem_classes="warning"):
|
250 |
gr.Markdown("""
|
251 |
## ⚕️ Medical Disclaimer
|
252 |
|