Spaces:
Runtime error
Runtime error
Update app.py
Browse files33 unmodified lines343536373738394033 unmodified lines img_preprocessed = preprocess_input(img) onnx_file=onnx.load(model) input_name = model.get_inputs()[0].name #output_name= model.get_output()[0].name output_name= model.get_output()[0].name try: predictions = model.run(None, {input_name: img_preprocessed}) class_idx = np.argmax(predictions[0][0])app.py+1-1