Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ class_names = ['CRVO',
|
|
13 |
'Diabetic Retinopathy',
|
14 |
'Laser Spots',
|
15 |
'Macular Degeneration',
|
|
|
16 |
'Myelinated Nerve Fiber',
|
17 |
'Normal',
|
18 |
'Pathological Mypoia',
|
@@ -73,7 +74,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
73 |
# Create the Gradio demo
|
74 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
75 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
76 |
-
outputs=[gr.Label(num_top_classes=
|
77 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
78 |
# Create examples list from "examples/" directory
|
79 |
examples=example_list,
|
|
|
13 |
'Diabetic Retinopathy',
|
14 |
'Laser Spots',
|
15 |
'Macular Degeneration',
|
16 |
+
'Macular Hole',
|
17 |
'Myelinated Nerve Fiber',
|
18 |
'Normal',
|
19 |
'Pathological Mypoia',
|
|
|
74 |
# Create the Gradio demo
|
75 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
76 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
77 |
+
outputs=[gr.Label(num_top_classes=10, label="Predictions"), # what are the outputs?
|
78 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
79 |
# Create examples list from "examples/" directory
|
80 |
examples=example_list,
|