Update app.py
Browse files
app.py
CHANGED
|
@@ -46,16 +46,17 @@ image = Image.open('background3.png')
|
|
| 46 |
resized_image = image.resize((150, 50), Image.LANCZOS)
|
| 47 |
|
| 48 |
background = image.resize((3000, 600))
|
| 49 |
-
with gr.Blocks(js=js,theme=gr.themes.Soft()) as demo:
|
| 50 |
-
gr.
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
| 59 |
|
| 60 |
class_names = ['cataracts', 'diabetic retinopathy', 'glaucoma', 'normal']
|
| 61 |
model = load_model('densenet121_model.keras')
|
|
|
|
| 46 |
resized_image = image.resize((150, 50), Image.LANCZOS)
|
| 47 |
|
| 48 |
background = image.resize((3000, 600))
|
| 49 |
+
with gr.Blocks(js=js,theme=gr.themes.Soft(), css=".gradio-container { max-width: 100%;}") as demo:
|
| 50 |
+
with gr.Row():
|
| 51 |
+
gr.Image(background, height = 300, interactive = False, show_download_button = False, show_share_button = False)
|
| 52 |
+
with gr.Row():
|
| 53 |
+
gr.Markdown(
|
| 54 |
+
'''
|
| 55 |
+
Eye disease can lead to vision impairment and complete blindness that affect one's ability in daily life.
|
| 56 |
+
Early detection and timely treatment are crucial to prevent the worsening of eye disease.
|
| 57 |
+
A Deep Learning Model has the potential to assist ophthalmologists in providing first screening of suspected eye disease through retinal fundus images.
|
| 58 |
+
'''
|
| 59 |
+
)
|
| 60 |
|
| 61 |
class_names = ['cataracts', 'diabetic retinopathy', 'glaucoma', 'normal']
|
| 62 |
model = load_model('densenet121_model.keras')
|