Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipeline = pipeline(task="image-classification", model="Fu-chiang/bit-50-
|
5 |
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
@@ -9,7 +9,7 @@ def predict(image):
|
|
9 |
|
10 |
gr.Interface(
|
11 |
predict,
|
12 |
-
inputs=gr.inputs.Image(label="Upload
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
-
title="
|
15 |
).launch()
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipeline = pipeline(task="image-classification", model="Fu-chiang/bit-50-Glaucoma")
|
5 |
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
|
|
9 |
|
10 |
gr.Interface(
|
11 |
predict,
|
12 |
+
inputs=gr.inputs.Image(label="Upload the fundus image", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
+
title="Glaucoma or Normal?",
|
15 |
).launch()
|