Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ function createGradioAnimation() {
|
|
| 10 |
container.style.textAlign = 'center';
|
| 11 |
container.style.marginBottom = '20px';
|
| 12 |
|
| 13 |
-
var text = '
|
| 14 |
for (var i = 0; i < text.length; i++) {
|
| 15 |
(function(i){
|
| 16 |
setTimeout(function(){
|
|
@@ -37,7 +37,7 @@ function createGradioAnimation() {
|
|
| 37 |
|
| 38 |
background = Image.open('eye.jpg')
|
| 39 |
with gr.Blocks(js=js,theme=gr.themes.Soft()) as demo:
|
| 40 |
-
gr.Image(background, height = '
|
| 41 |
gr.Markdown(
|
| 42 |
'''
|
| 43 |
Eye disease could lead to vision impairment and complete blindness that affect one's ability in daily life.
|
|
@@ -46,7 +46,6 @@ with gr.Blocks(js=js,theme=gr.themes.Soft()) as demo:
|
|
| 46 |
'''
|
| 47 |
)
|
| 48 |
|
| 49 |
-
|
| 50 |
from keras.models import load_model
|
| 51 |
import tensorflow as tf
|
| 52 |
|
|
@@ -75,14 +74,14 @@ with gr.Blocks(js=js,theme=gr.themes.Soft()) as demo:
|
|
| 75 |
'''
|
| 76 |
)
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
|
| 87 |
|
| 88 |
demo.launch(debug='True')
|
|
|
|
| 10 |
container.style.textAlign = 'center';
|
| 11 |
container.style.marginBottom = '20px';
|
| 12 |
|
| 13 |
+
var text = 'A-EYE: Eye Disease Classifier';
|
| 14 |
for (var i = 0; i < text.length; i++) {
|
| 15 |
(function(i){
|
| 16 |
setTimeout(function(){
|
|
|
|
| 37 |
|
| 38 |
background = Image.open('eye.jpg')
|
| 39 |
with gr.Blocks(js=js,theme=gr.themes.Soft()) as demo:
|
| 40 |
+
gr.Image(background, height = '200px', interactive = False)
|
| 41 |
gr.Markdown(
|
| 42 |
'''
|
| 43 |
Eye disease could lead to vision impairment and complete blindness that affect one's ability in daily life.
|
|
|
|
| 46 |
'''
|
| 47 |
)
|
| 48 |
|
|
|
|
| 49 |
from keras.models import load_model
|
| 50 |
import tensorflow as tf
|
| 51 |
|
|
|
|
| 74 |
'''
|
| 75 |
)
|
| 76 |
|
| 77 |
+
gr.Interface(fn = predict_input_image,
|
| 78 |
+
inputs = gr.Image(width = 224, height = 224),
|
| 79 |
+
outputs = gr.Label(num_top_classes = 4),
|
| 80 |
+
#title = title,
|
| 81 |
+
#description = 'This classifier is developed to classify cataracts, diabetic retinopathy, glaucoma and normal eyes through fundus images',
|
| 82 |
+
cache_examples = False,
|
| 83 |
+
allow_flagging = 'never',
|
| 84 |
+
)
|
| 85 |
|
| 86 |
|
| 87 |
demo.launch(debug='True')
|