Anonymise commited on
Commit
61cd897
Β·
verified Β·
1 Parent(s): 385ada6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -52
app.py CHANGED
@@ -2667,26 +2667,12 @@ def create_interface():
2667
  )
2668
 
2669
  with gr.Blocks(theme=theme, title="ProFound: Vision Foundation Models for Prostate Multiparametric MR Images") as demo:
2670
- # Header with logo
2671
- with gr.Row():
2672
- with gr.Column(scale=4):
2673
- gr.Markdown("""
2674
- # ProFound: Vision Foundation Models for Prostate Multiparametric MR Images πŸ₯πŸ”¬
2675
-
2676
- ProFound is a suite of vision foundation models, pre-trained on multiparametric 3D magnetic resonance (MR) images from large collections of prostate cancer patients.
2677
-
2678
- For more details, check out our [GitHub repository](https://github.com/pipiwang/ProFound).
2679
- """)
2680
- with gr.Column(scale=1):
2681
- # Display UCL Hawkes Institute logo
2682
- gr.Image(
2683
- value="UCL-Hawkes-Institute-logo.jpg",
2684
- show_label=False,
2685
- show_download_button=False,
2686
- container=False,
2687
- height=120,
2688
- interactive=False
2689
- )
2690
 
2691
  # Create State components to manage data
2692
  pretrain_state = gr.State(value=None)
@@ -2756,15 +2742,7 @@ def create_interface():
2756
  outputs=[pretrain_plot]
2757
  )
2758
 
2759
- gr.Markdown("""
2760
- **Acknowledgement**
2761
-
2762
- This work is supported by the International Alliance for Cancer Early Detection, an alliance between Cancer Research UK, Canary Center at Stanford University, the University of Cambridge, OHSU Knight Cancer Institute, University College London and the University of Manchester.
2763
 
2764
- This work is also supported by the National Institute for Health Research University College London Hospitals Biomedical Research Centre.
2765
-
2766
- The authors acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].
2767
- """)
2768
 
2769
  # Classification tab
2770
  with gr.TabItem("🎯 Assessment of Prostate Cancer Patients", id="classification"):
@@ -2804,15 +2782,7 @@ def create_interface():
2804
  outputs=[cls_plot, cls_result]
2805
  )
2806
 
2807
- gr.Markdown("""
2808
- **Acknowledgement**
2809
-
2810
- This work is supported by the International Alliance for Cancer Early Detection, an alliance between Cancer Research UK, Canary Center at Stanford University, the University of Cambridge, OHSU Knight Cancer Institute, University College London and the University of Manchester.
2811
 
2812
- This work is also supported by the National Institute for Health Research University College London Hospitals Biomedical Research Centre.
2813
-
2814
- The authors acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].
2815
- """)
2816
 
2817
  # Segmentation tab
2818
  with gr.TabItem("βœ‚οΈ Segmentation of Prostate Cancer Lesions", id="segmentation"):
@@ -2885,15 +2855,7 @@ def create_interface():
2885
  outputs=[slice_browser_plot]
2886
  )
2887
 
2888
- gr.Markdown("""
2889
- **Acknowledgement**
2890
-
2891
- This work is supported by the International Alliance for Cancer Early Detection, an alliance between Cancer Research UK, Canary Center at Stanford University, the University of Cambridge, OHSU Knight Cancer Institute, University College London and the University of Manchester.
2892
 
2893
- This work is also supported by the National Institute for Health Research University College London Hospitals Biomedical Research Centre.
2894
-
2895
- The authors acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].
2896
- """)
2897
 
2898
  # Anatomy Segmentation tab - NEW
2899
  with gr.TabItem("πŸ«€ Segmentation of Prostate Anatomy", id="anatomy_segmentation"):
@@ -2992,15 +2954,7 @@ def create_interface():
2992
  outputs=[anat_volume_3d_plot]
2993
  )
2994
 
2995
- gr.Markdown("""
2996
- **Acknowledgement**
2997
-
2998
- This work is supported by the International Alliance for Cancer Early Detection, an alliance between Cancer Research UK, Canary Center at Stanford University, the University of Cambridge, OHSU Knight Cancer Institute, University College London and the University of Manchester.
2999
 
3000
- This work is also supported by the National Institute for Health Research University College London Hospitals Biomedical Research Centre.
3001
-
3002
- The authors acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].
3003
- """)
3004
 
3005
  return demo
3006
 
 
2667
  )
2668
 
2669
  with gr.Blocks(theme=theme, title="ProFound: Vision Foundation Models for Prostate Multiparametric MR Images") as demo:
2670
+ # Header
2671
+ gr.Markdown("""
2672
+ # ProFound: Vision Foundation Models for Prostate Multiparametric MR Images πŸ₯πŸ”¬
2673
+
2674
+ ProFound is a suite of vision foundation models, pre-trained on multiparametric 3D magnetic resonance (MR) images from large collections of prostate cancer patients.
2675
+ """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2676
 
2677
  # Create State components to manage data
2678
  pretrain_state = gr.State(value=None)
 
2742
  outputs=[pretrain_plot]
2743
  )
2744
 
 
 
 
 
2745
 
 
 
 
 
2746
 
2747
  # Classification tab
2748
  with gr.TabItem("🎯 Assessment of Prostate Cancer Patients", id="classification"):
 
2782
  outputs=[cls_plot, cls_result]
2783
  )
2784
 
 
 
 
 
2785
 
 
 
 
 
2786
 
2787
  # Segmentation tab
2788
  with gr.TabItem("βœ‚οΈ Segmentation of Prostate Cancer Lesions", id="segmentation"):
 
2855
  outputs=[slice_browser_plot]
2856
  )
2857
 
 
 
 
 
2858
 
 
 
 
 
2859
 
2860
  # Anatomy Segmentation tab - NEW
2861
  with gr.TabItem("πŸ«€ Segmentation of Prostate Anatomy", id="anatomy_segmentation"):
 
2954
  outputs=[anat_volume_3d_plot]
2955
  )
2956
 
 
 
 
 
2957
 
 
 
 
 
2958
 
2959
  return demo
2960