Spaces:
Runtime error
Runtime error
Fix weird markdown formatting
Browse files
app.py
CHANGED
@@ -7,6 +7,16 @@ from monai import bundle
|
|
7 |
BUNDLE_NAME = 'spleen_ct_segmentation_v0.1.0'
|
8 |
BUNDLE_PATH = os.path.join(torch.hub.get_dir(), 'bundle', BUNDLE_NAME)
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Set up some examples from the test set for better user experience
|
11 |
examples = [
|
12 |
['examples/spleen_1.nii.gz', 50],
|
@@ -60,14 +70,7 @@ iface = gr.Interface(
|
|
60 |
],
|
61 |
outputs=['image', 'image'],
|
62 |
title='Segment the Spleen using MONAI!',
|
63 |
-
description=
|
64 |
-
Upload a abdominal CT scan, or try one of the examples below!
|
65 |
-
|
66 |
-
More details on the model can be found [here!](https://huggingface.co/katielink/spleen_ct_segmentation_v0.1.0)
|
67 |
-
|
68 |
-
## ⚠️ Disclaimer
|
69 |
-
Not to be used for diagnostic purposes.
|
70 |
-
""",
|
71 |
examples=examples,
|
72 |
)
|
73 |
|
|
|
7 |
BUNDLE_NAME = 'spleen_ct_segmentation_v0.1.0'
|
8 |
BUNDLE_PATH = os.path.join(torch.hub.get_dir(), 'bundle', BUNDLE_NAME)
|
9 |
|
10 |
+
description = """
|
11 |
+
## 🚀 To run
|
12 |
+
Upload a abdominal CT scan, or try one of the examples below!
|
13 |
+
|
14 |
+
More details on the model can be found [here!](https://huggingface.co/katielink/spleen_ct_segmentation_v0.1.0)
|
15 |
+
|
16 |
+
## ⚠️ Disclaimer
|
17 |
+
Not to be used for diagnostic purposes.
|
18 |
+
"""
|
19 |
+
|
20 |
# Set up some examples from the test set for better user experience
|
21 |
examples = [
|
22 |
['examples/spleen_1.nii.gz', 50],
|
|
|
70 |
],
|
71 |
outputs=['image', 'image'],
|
72 |
title='Segment the Spleen using MONAI!',
|
73 |
+
description=description,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
examples=examples,
|
75 |
)
|
76 |
|