Spaces:
Sleeping
Sleeping
Commit
·
a690645
1
Parent(s):
40c0e3d
Update app.py
Browse files
app.py
CHANGED
@@ -16,16 +16,18 @@ st.set_page_config(
|
|
16 |
)
|
17 |
|
18 |
# Title and description
|
19 |
-
|
20 |
-
|
21 |
"""Curious about detecting brain tumors in medical images?
|
22 |
Give this app a try! Upload an MRI image in JPG or
|
23 |
PNG format, and discover whether it shows signs of a brain tumor.
|
24 |
This is an updated version of the Brain Tumor Classifier:
|
25 |
[Kaggle Dataset](https://www.kaggle.com/datasets/navoneel/brain-mri-images-for-brain-tumor-detection/)
|
26 |
-
"""
|
|
|
|
|
|
|
27 |
)
|
28 |
-
|
29 |
# Sidebar with information
|
30 |
st.sidebar.title("About")
|
31 |
st.sidebar.info(
|
@@ -82,6 +84,7 @@ if uploaded_file is not None:
|
|
82 |
|
83 |
# Gradio interface
|
84 |
iface = gr.Interface(
|
|
|
85 |
fn=predict_braintumor,
|
86 |
inputs="image",
|
87 |
outputs="text",
|
@@ -93,6 +96,8 @@ iface = gr.Interface(
|
|
93 |
["examples/Y2.jpg"],
|
94 |
["examples/Y3.jpg"],
|
95 |
],
|
|
|
|
|
96 |
live=True
|
97 |
)
|
98 |
|
|
|
16 |
)
|
17 |
|
18 |
# Title and description
|
19 |
+
title = "Brain Tumor Detection App"
|
20 |
+
description = gr.Markdown(
|
21 |
"""Curious about detecting brain tumors in medical images?
|
22 |
Give this app a try! Upload an MRI image in JPG or
|
23 |
PNG format, and discover whether it shows signs of a brain tumor.
|
24 |
This is an updated version of the Brain Tumor Classifier:
|
25 |
[Kaggle Dataset](https://www.kaggle.com/datasets/navoneel/brain-mri-images-for-brain-tumor-detection/)
|
26 |
+
""").value
|
27 |
+
article = gr.Markdown(
|
28 |
+
"""This is an updated version of the Brain Tumor Classifier:
|
29 |
+
[Kaggle Dataset](https://www.kaggle.com/datasets/navoneel/brain-mri-images-for-brain-tumor-detection/)"""
|
30 |
)
|
|
|
31 |
# Sidebar with information
|
32 |
st.sidebar.title("About")
|
33 |
st.sidebar.info(
|
|
|
84 |
|
85 |
# Gradio interface
|
86 |
iface = gr.Interface(
|
87 |
+
title = title,
|
88 |
fn=predict_braintumor,
|
89 |
inputs="image",
|
90 |
outputs="text",
|
|
|
96 |
["examples/Y2.jpg"],
|
97 |
["examples/Y3.jpg"],
|
98 |
],
|
99 |
+
description = description,
|
100 |
+
article=article,
|
101 |
live=True
|
102 |
)
|
103 |
|