Update app.py
Browse files
app.py
CHANGED
@@ -34,11 +34,12 @@ examples = [
|
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=getResult,
|
37 |
-
inputs=gr.Image(shape=(64, 64)),
|
38 |
-
outputs=gr.Label(num_top_classes=2),
|
39 |
title="Brain Tumor Classification",
|
40 |
description="Upload the MRI Image of the Brain and it will tell whether it has a Brain Tumor or not",
|
41 |
-
examples=examples
|
|
|
42 |
)
|
43 |
if __name__ == "__main__":
|
44 |
iface.launch()
|
|
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=getResult,
|
37 |
+
inputs=gr.Image(shape=(64, 64),label="MRI Image"),
|
38 |
+
outputs=gr.Label(num_top_classes=2,label="Output"),
|
39 |
title="Brain Tumor Classification",
|
40 |
description="Upload the MRI Image of the Brain and it will tell whether it has a Brain Tumor or not",
|
41 |
+
examples=examples,
|
42 |
+
theme=gr.themes.Default(primary_hue="teal", secondary_hue="cyan"), allow_flagging=False
|
43 |
)
|
44 |
if __name__ == "__main__":
|
45 |
iface.launch()
|