JohanBeytell commited on
Commit
9db44a7
Β·
verified Β·
1 Parent(s): f776567

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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="*Upload an image to see predictions...*")
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("""