Fu-chiang commited on
Commit
f7ca1ab
1 Parent(s): de3180d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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-skin-lesions")
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 skin lesion picture", type="filepath"),
13
  outputs=gr.outputs.Label(num_top_classes=2),
14
- title="Melanoma or Nevus?",
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()