zihaoz96 commited on
Commit
ce421dd
·
1 Parent(s): e2167bf
app.py CHANGED
@@ -55,10 +55,6 @@ def predict_image(image, model_name):
55
 
56
  image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
57
  label = gr.outputs.Label(num_top_classes=len(labels))
58
-
59
- samples = ['samples/basking.jpg', 'samples/blacktip.jpg', 'samples/blue.jpg', 'samples/bull.jpg', 'samples/hammerhead.jpg',
60
- 'samples/lemon.jpg', 'samples/mako.jpg', 'samples/nurse.jpg', 'samples/sand tiger.jpg', 'samples/thresher.jpg',
61
- 'samples/tigre.jpg', 'samples/whale.jpg', 'samples/white.jpg', 'samples/whitetip.jpg']
62
 
63
  interface = gr.Interface(
64
  fn=predict_image,
@@ -66,6 +62,5 @@ interface = gr.Interface(
66
  outputs=label,
67
  capture_session=True,
68
  allow_flagging=False,
69
- examples=samples
70
  )
71
  interface.launch()
 
55
 
56
  image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
57
  label = gr.outputs.Label(num_top_classes=len(labels))
 
 
 
 
58
 
59
  interface = gr.Interface(
60
  fn=predict_image,
 
62
  outputs=label,
63
  capture_session=True,
64
  allow_flagging=False,
 
65
  )
66
  interface.launch()
samples/basking.jpg DELETED
Binary file (2.86 MB)
 
samples/blacktip.jpg DELETED
Binary file (24.3 kB)
 
samples/blue.jpg DELETED
Binary file (4.01 MB)
 
samples/bull.jpg DELETED
Binary file (3.31 MB)
 
samples/hammerhead.jpg DELETED
Binary file (103 kB)
 
samples/lemon.jpg DELETED
Binary file (553 kB)
 
samples/mako.jpg DELETED
Binary file (37.2 kB)
 
samples/nurse.jpg DELETED
Binary file (37.1 kB)
 
samples/sand tiger.jpg DELETED
Binary file (128 kB)
 
samples/thresher.jpg DELETED
Binary file (126 kB)
 
samples/tigre.jpg DELETED
Binary file (44.9 kB)
 
samples/whale.jpg DELETED
Binary file (222 kB)
 
samples/white.jpg DELETED
Binary file (209 kB)
 
samples/whitetip.jpg DELETED
Binary file (41.4 kB)