Isabel Gwara commited on
Commit
7db86dd
·
1 Parent(s): 938c946

imagine using .length instead of len() what a java noob

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -110,6 +110,6 @@ def predict_image(image):
110
  return results
111
 
112
  image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
113
- label = gr.outputs.Label(num_top_classes=labels.length)
114
 
115
  gr.Interface(fn=predict_image, inputs=image, outputs=label, capture_session=True, article=doc.getvalue(), css=my_css, theme='huggingface', title=title, allow_flagging=False, description=description).launch(share=True, debug=True)
 
110
  return results
111
 
112
  image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
113
+ label = gr.outputs.Label(num_top_classes=len(labels))
114
 
115
  gr.Interface(fn=predict_image, inputs=image, outputs=label, capture_session=True, article=doc.getvalue(), css=my_css, theme='huggingface', title=title, allow_flagging=False, description=description).launch(share=True, debug=True)