Update app.py
Browse files
app.py
CHANGED
|
@@ -482,6 +482,8 @@ def create_gradio_app():
|
|
| 482 |
gr.Markdown("β οΈ **Warning**: Model file not found. Please ensure your trained model (.h5) is in the space's root directory.")
|
| 483 |
|
| 484 |
gr.Markdown("""
|
|
|
|
|
|
|
| 485 |
## π How to Use:
|
| 486 |
1. **Upload an MRI brain scan** (JPEG, PNG, or other image formats)
|
| 487 |
2. **View automatic preprocessing** and prediction results
|
|
@@ -512,7 +514,7 @@ def create_gradio_app():
|
|
| 512 |
|
| 513 |
# Prediction results
|
| 514 |
gr.Markdown("## π― Prediction Results")
|
| 515 |
-
prediction_output = gr.Markdown(value="
|
| 516 |
|
| 517 |
# Analysis buttons
|
| 518 |
gr.Markdown("## π¬ Grad-CAM++ Analysis")
|
|
@@ -551,6 +553,7 @@ def create_gradio_app():
|
|
| 551 |
- **6 Superimposed Views** (All color schemes)
|
| 552 |
- **Fast Processing** (~3-4 seconds)
|
| 553 |
- **Perfect for screening** multiple images
|
|
|
|
| 554 |
""")
|
| 555 |
|
| 556 |
with gr.Column():
|
|
@@ -562,6 +565,7 @@ def create_gradio_app():
|
|
| 562 |
- **Statistical Analysis Panel** with quantitative metrics
|
| 563 |
- **6 Enhanced Superimposed Views** with gamma correction
|
| 564 |
- **Clinical-grade visualization** for detailed examination
|
|
|
|
| 565 |
""")
|
| 566 |
|
| 567 |
gr.Markdown("""
|
|
|
|
| 482 |
gr.Markdown("β οΈ **Warning**: Model file not found. Please ensure your trained model (.h5) is in the space's root directory.")
|
| 483 |
|
| 484 |
gr.Markdown("""
|
| 485 |
+
---
|
| 486 |
+
|
| 487 |
## π How to Use:
|
| 488 |
1. **Upload an MRI brain scan** (JPEG, PNG, or other image formats)
|
| 489 |
2. **View automatic preprocessing** and prediction results
|
|
|
|
| 514 |
|
| 515 |
# Prediction results
|
| 516 |
gr.Markdown("## π― Prediction Results")
|
| 517 |
+
prediction_output = gr.Markdown(value="Upload an image to see predictions...")
|
| 518 |
|
| 519 |
# Analysis buttons
|
| 520 |
gr.Markdown("## π¬ Grad-CAM++ Analysis")
|
|
|
|
| 553 |
- **6 Superimposed Views** (All color schemes)
|
| 554 |
- **Fast Processing** (~3-4 seconds)
|
| 555 |
- **Perfect for screening** multiple images
|
| 556 |
+
---
|
| 557 |
""")
|
| 558 |
|
| 559 |
with gr.Column():
|
|
|
|
| 565 |
- **Statistical Analysis Panel** with quantitative metrics
|
| 566 |
- **6 Enhanced Superimposed Views** with gamma correction
|
| 567 |
- **Clinical-grade visualization** for detailed examination
|
| 568 |
+
---
|
| 569 |
""")
|
| 570 |
|
| 571 |
gr.Markdown("""
|