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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -15
app.py CHANGED
@@ -227,23 +227,28 @@ interface = gr.Interface(
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
248
  if torch.cuda.is_available():
249
  print(f"GPU is available: {torch.cuda.get_device_name(0)}")
 
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
  )
231
 
232
+ # Add Markdown as a separate element
233
+ markdown = gr.Markdown("""
234
+ **If you find this tool useful, please consider citing:**
235
+
236
+ - **Reference 1:** Machine Learning / Network Science
237
+ P286 A Deep Learning-Based Pipeline for Longitudinal White Matter Lesion Segmentation Using Diverse FLAIR Images
238
+ F. La Rosa, et al.
239
+ *ACTRIMS Forum 2023 - Poster Presentations. Multiple Sclerosis Journal.* 2023;29(2_suppl):18-242.
240
+ DOI: [10.1177/13524585231169437](https://doi.org/10.1177/13524585231169437)
241
+
242
+ - **Reference 2:** A Deep Learning Model for Generalized Use in Medical Imaging
243
+ *Nature Methods*, 2020.
244
+ DOI: [10.1038/s41592-020-01008-z](https://www.nature.com/articles/s41592-020-01008-z)
245
+ """)
246
+
247
+ # Use a Gradio Blocks layout to include the Markdown
248
+ with gr.Blocks() as demo:
249
+ interface.render()
250
+ markdown.render()
251
+
252
  # Debugging GPU environment
253
  if torch.cuda.is_available():
254
  print(f"GPU is available: {torch.cuda.get_device_name(0)}")