Spaces:
Runtime error
Runtime error
Commit
·
7f3e9be
1
Parent(s):
b700ffd
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
import numpy as np
|
4 |
+
import cv2
|
5 |
+
from keras.models import Model
|
6 |
+
from keras.layers import Input, Conv2D, MaxPooling2D, Conv2DTranspose, concatenate
|
7 |
+
|
8 |
+
if __name__ == "__main__":
|
9 |
+
|
10 |
+
gr.Interface(
|
11 |
+
fn=segment,
|
12 |
+
inputs="image",
|
13 |
+
examples=[["benign(10).png"], ["benign(109).png"]],
|
14 |
+
title = '<h1 style="text-align: center;">Breast Cancer Ultrasound Image Segmentation!</h1>',
|
15 |
+
description = """
|
16 |
+
Check out this exciting development in the field of breast cancer diagnosis and treatment!
|
17 |
+
A demo of Breast Cancer Ultrasound Image Segmentation has been developed.
|
18 |
+
Upload image file, or try out one of the examples below!
|
19 |
+
"""
|
20 |
+
).launch(debug=True)
|