Update app.py
Browse files
app.py
CHANGED
@@ -477,13 +477,13 @@ def create_gradio_app():
|
|
477 |
# Model status display
|
478 |
model_status = "β
Model loaded successfully" if model_loaded else "β Model not available"
|
479 |
gr.Markdown(f"**Model Status:** {model_status}")
|
|
|
480 |
|
481 |
if not model_loaded:
|
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 |
-
> **Please read the disclaimer at the bottom of the page first before use.**
|
487 |
|
488 |
## π How to Use:
|
489 |
1. **Upload an MRI brain scan** (JPEG, PNG, or other image formats)
|
@@ -494,12 +494,11 @@ def create_gradio_app():
|
|
494 |
|
495 |
gr.Markdown("""
|
496 |
### Model statistics:
|
497 |
-
**accuracy:** `0.9913`
|
498 |
-
**val_accuracy:** `0.8824`
|
499 |
""")
|
500 |
|
501 |
gr.Markdown("""
|
502 |
-
```
|
503 |
--- Classification Report ---
|
504 |
precision recall f1-score support
|
505 |
|
@@ -509,7 +508,6 @@ def create_gradio_app():
|
|
509 |
accuracy 0.90 51
|
510 |
macro avg 0.90 0.89 0.90 51
|
511 |
weighted avg 0.90 0.90 0.90 51
|
512 |
-
```
|
513 |
""")
|
514 |
|
515 |
with gr.Row():
|
|
|
477 |
# Model status display
|
478 |
model_status = "β
Model loaded successfully" if model_loaded else "β Model not available"
|
479 |
gr.Markdown(f"**Model Status:** {model_status}")
|
480 |
+
gr.Markdown("Please read the disclaimer at the bottom of the page first before use.")
|
481 |
|
482 |
if not model_loaded:
|
483 |
gr.Markdown("β οΈ **Warning**: Model file not found. Please ensure your trained model (.h5) is in the space's root directory.")
|
484 |
|
485 |
gr.Markdown("""
|
486 |
---
|
|
|
487 |
|
488 |
## π How to Use:
|
489 |
1. **Upload an MRI brain scan** (JPEG, PNG, or other image formats)
|
|
|
494 |
|
495 |
gr.Markdown("""
|
496 |
### Model statistics:
|
497 |
+
**accuracy:** `0.9913`
|
498 |
+
**val_accuracy:** `0.8824`
|
499 |
""")
|
500 |
|
501 |
gr.Markdown("""
|
|
|
502 |
--- Classification Report ---
|
503 |
precision recall f1-score support
|
504 |
|
|
|
508 |
accuracy 0.90 51
|
509 |
macro avg 0.90 0.89 0.90 51
|
510 |
weighted avg 0.90 0.90 0.90 51
|
|
|
511 |
""")
|
512 |
|
513 |
with gr.Row():
|