AlvinSiang commited on
Commit
a94ecd6
·
verified ·
1 Parent(s): 1881c61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -22,10 +22,26 @@ def predict_input_image(img):
22
 
23
  import gradio as gr
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  demo = gr.Interface(fn = predict_input_image,
26
  inputs = gr.Image(width = 224, height = 224),
27
  outputs = gr.Label(num_top_classes = 4),
28
- title = 'A Eye: Eye Disease Classifier',
29
  description = 'This classifier is developed to classify cataracts, diabetic retinopathy, glaucoma and normal eyes through fundus images',
30
  cache_examples = False,
31
  allow_flagging = 'never',
 
22
 
23
  import gradio as gr
24
 
25
+ title=(
26
+ """
27
+ <center>
28
+
29
+ <h1> A Eye: Eye Disease Classifier </h1>
30
+ <b> text 📧<b>
31
+
32
+ </center>
33
+ """
34
+ )
35
+
36
+ with gr.Blocks(theme='gradio/soft') as demo:
37
+ with gr.Row():
38
+ gr.HTML(title)
39
+
40
+ demo.launch()
41
  demo = gr.Interface(fn = predict_input_image,
42
  inputs = gr.Image(width = 224, height = 224),
43
  outputs = gr.Label(num_top_classes = 4),
44
+ title = title,
45
  description = 'This classifier is developed to classify cataracts, diabetic retinopathy, glaucoma and normal eyes through fundus images',
46
  cache_examples = False,
47
  allow_flagging = 'never',