Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -213,12 +213,12 @@ with gr.Blocks(title="Brain MRI Tumor Classifier", theme=gr.themes.Default()) as
|
|
| 213 |
gr.Markdown("### ⚙️ Sensitivity Analysis Settings")
|
| 214 |
|
| 215 |
patch_size_slider = gr.Slider(
|
| 216 |
-
minimum=10, maximum=50, value=
|
| 217 |
label="Patch Size",
|
| 218 |
info="Larger = faster but less detailed"
|
| 219 |
)
|
| 220 |
stride_slider = gr.Slider(
|
| 221 |
-
minimum=5, maximum=20, value=
|
| 222 |
label="Stride",
|
| 223 |
info="Larger = faster but less detailed"
|
| 224 |
)
|
|
@@ -232,6 +232,9 @@ with gr.Blocks(title="Brain MRI Tumor Classifier", theme=gr.themes.Default()) as
|
|
| 232 |
---
|
| 233 |
**ℹ️ Tip:** Select an image from the dropdown or upload your own,
|
| 234 |
then click 'Analyze Image' to see predictions and sensitivity maps.
|
|
|
|
|
|
|
|
|
|
| 235 |
""")
|
| 236 |
|
| 237 |
# Right column - Results
|
|
|
|
| 213 |
gr.Markdown("### ⚙️ Sensitivity Analysis Settings")
|
| 214 |
|
| 215 |
patch_size_slider = gr.Slider(
|
| 216 |
+
minimum=10, maximum=50, value=50, step=5,
|
| 217 |
label="Patch Size",
|
| 218 |
info="Larger = faster but less detailed"
|
| 219 |
)
|
| 220 |
stride_slider = gr.Slider(
|
| 221 |
+
minimum=5, maximum=20, value=20, step=5,
|
| 222 |
label="Stride",
|
| 223 |
info="Larger = faster but less detailed"
|
| 224 |
)
|
|
|
|
| 232 |
---
|
| 233 |
**ℹ️ Tip:** Select an image from the dropdown or upload your own,
|
| 234 |
then click 'Analyze Image' to see predictions and sensitivity maps.
|
| 235 |
+
---
|
| 236 |
+
**📝 Note:** The default values for patch size and stride have been set to the maximum due to computational constraints.
|
| 237 |
+
Though the results will be enough for a quick demo.
|
| 238 |
""")
|
| 239 |
|
| 240 |
# Right column - Results
|