fadindashfr
commited on
Commit
·
ed80dbe
1
Parent(s):
059fc1c
Add markdown description in interface
Browse files
app.py
CHANGED
|
@@ -59,13 +59,17 @@ def query_image(img):
|
|
| 59 |
result = np.rot90(result, k=1)
|
| 60 |
|
| 61 |
return result
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
demo = gr.Interface(
|
| 64 |
query_image,
|
| 65 |
inputs=[gr.Image(type="filepath")],
|
| 66 |
outputs="image",
|
| 67 |
title="Medical Image Classification with MONAI - Pathology Nuclei Segmentation Classification",
|
| 68 |
-
description =
|
| 69 |
examples=example_files
|
| 70 |
)
|
| 71 |
|
|
|
|
| 59 |
result = np.rot90(result, k=1)
|
| 60 |
|
| 61 |
return result
|
| 62 |
+
|
| 63 |
+
# load Markdown file
|
| 64 |
+
with open('Description.md','r') as file:
|
| 65 |
+
markdown_content = file.read()
|
| 66 |
+
|
| 67 |
demo = gr.Interface(
|
| 68 |
query_image,
|
| 69 |
inputs=[gr.Image(type="filepath")],
|
| 70 |
outputs="image",
|
| 71 |
title="Medical Image Classification with MONAI - Pathology Nuclei Segmentation Classification",
|
| 72 |
+
description = markdown_content,
|
| 73 |
examples=example_files
|
| 74 |
)
|
| 75 |
|