FrancescoLR commited on
Commit
d0db38f
·
verified ·
1 Parent(s): 77c3c12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -217,14 +217,31 @@ def run_nnunet_predict(nifti_file):
217
  # Gradio Interfaceinterface = gr.Interface(
218
  interface = gr.Interface(
219
  fn=run_nnunet_predict,
220
- inputs=gr.File(label="Upload FLAIR Image (.nii.gz)"),
 
 
221
  outputs=[
222
  gr.File(label="Download Segmentation Mask"),
223
  gr.Image(label="Input: FLAIR image"),
224
  gr.Image(label="Output: Lesion Mask")
225
  ],
226
  title="FLAMeS: Multiple Sclerosis Lesion Segmentation",
227
- description="Upload a skull-stripped FLAIR image (.nii.gz) to generate a binary segmentation of multiple sclerosis lesions."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  )
229
 
230
  # Debugging GPU environment
 
217
  # Gradio Interfaceinterface = gr.Interface(
218
  interface = gr.Interface(
219
  fn=run_nnunet_predict,
220
+ inputs=[
221
+ gr.File(label="Upload FLAIR Image (.nii.gz)")
222
+ ],
223
  outputs=[
224
  gr.File(label="Download Segmentation Mask"),
225
  gr.Image(label="Input: FLAIR image"),
226
  gr.Image(label="Output: Lesion Mask")
227
  ],
228
  title="FLAMeS: Multiple Sclerosis Lesion Segmentation",
229
+ description="Upload a skull-stripped FLAIR image (.nii.gz) to generate a binary segmentation of multiple sclerosis lesions.",
230
+ examples=[
231
+ gr.Markdown("""
232
+ **If you find this tool useful, please consider citing:**
233
+
234
+ - **Reference 1:** Machine Learning / Network Science
235
+ P286 A Deep Learning-Based Pipeline for Longitudinal White Matter Lesion Segmentation Using Diverse FLAIR Images
236
+ F. La Rosa1, J. Dos Santos Silva1, W. A. Mullins2, H. Greenspan3, J. F. Sumowski1, D. S. Reich2, E. S. Beck,
237
+ *ACTRIMS Forum 2023 - Poster Presentations. Multiple Sclerosis Journal.* 2023;29(2_suppl):18-242.
238
+ DOI: [10.1177/13524585231169437](https://doi.org/10.1177/13524585231169437)
239
+
240
+ - **Reference 2:** A Deep Learning Model for Generalized Use in Medical Imaging
241
+ *Nature Methods*, 2020.
242
+ DOI: [10.1038/s41592-020-01008-z](https://www.nature.com/articles/s41592-020-01008-z)
243
+ """)
244
+ ]
245
  )
246
 
247
  # Debugging GPU environment