chansung commited on
Commit
fa179a8
1 Parent(s): 6dbc7c7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def classify_image(inp):
21
  inp = resnet50.preprocess_input(inp)
22
 
23
  prediction = model.predict(inp).flatten()
24
- confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
25
  return confidences
26
 
27
  iface = gr.Interface(fn=classify_image,
21
  inp = resnet50.preprocess_input(inp)
22
 
23
  prediction = model.predict(inp).flatten()
24
+ confidences = {labels[i]: float(prediction[i]) for i in range(10)}
25
  return confidences
26
 
27
  iface = gr.Interface(fn=classify_image,