Spaces:
Running
on
Zero
Running
on
Zero
FrancescoLR
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -229,9 +229,8 @@ interface = gr.Interface(
|
|
229 |
description="Upload a skull-stripped FLAIR image (.nii.gz) to generate a binary segmentation of multiple sclerosis lesions.",
|
230 |
)
|
231 |
|
232 |
-
# Markdown
|
233 |
-
|
234 |
-
markdown = gr.Markdown("""
|
235 |
**If you find this tool useful, please consider citing:**
|
236 |
|
237 |
1. A Deep Learning-Based Pipeline for Longitudinal White Matter Lesion Segmentation Using Diverse FLAIR Images
|
@@ -243,7 +242,7 @@ markdown = gr.Markdown("""
|
|
243 |
F. Isensee, P. F. Jaeger, S. A. Kohl, J. Petersen, & K. H. Maier-Hein.
|
244 |
*Nature Methods.* 2021;18(2):203-211.
|
245 |
DOI: [10.1038/s41592-020-01008-z](https://www.nature.com/articles/s41592-020-01008-z)
|
246 |
-
"""
|
247 |
|
248 |
# Use Gradio Blocks for a clean layout
|
249 |
with gr.Blocks() as demo:
|
@@ -264,7 +263,7 @@ with gr.Blocks() as demo:
|
|
264 |
output_img = gr.Image(label="Output: Lesion Mask")
|
265 |
|
266 |
# References
|
267 |
-
gr.Markdown(
|
268 |
|
269 |
# Debugging GPU environment
|
270 |
if torch.cuda.is_available():
|
|
|
229 |
description="Upload a skull-stripped FLAIR image (.nii.gz) to generate a binary segmentation of multiple sclerosis lesions.",
|
230 |
)
|
231 |
|
232 |
+
# Markdown content as a string
|
233 |
+
markdown_content = """
|
|
|
234 |
**If you find this tool useful, please consider citing:**
|
235 |
|
236 |
1. A Deep Learning-Based Pipeline for Longitudinal White Matter Lesion Segmentation Using Diverse FLAIR Images
|
|
|
242 |
F. Isensee, P. F. Jaeger, S. A. Kohl, J. Petersen, & K. H. Maier-Hein.
|
243 |
*Nature Methods.* 2021;18(2):203-211.
|
244 |
DOI: [10.1038/s41592-020-01008-z](https://www.nature.com/articles/s41592-020-01008-z)
|
245 |
+
"""
|
246 |
|
247 |
# Use Gradio Blocks for a clean layout
|
248 |
with gr.Blocks() as demo:
|
|
|
263 |
output_img = gr.Image(label="Output: Lesion Mask")
|
264 |
|
265 |
# References
|
266 |
+
gr.Markdown(markdown_content)
|
267 |
|
268 |
# Debugging GPU environment
|
269 |
if torch.cuda.is_available():
|