deveix commited on
Commit
b656d7a
·
1 Parent(s): ee4841d
Files changed (1) hide show
  1. app/main.py +2 -0
app/main.py CHANGED
@@ -302,6 +302,7 @@ async def handle_cnn(file: UploadFile = File(...)):
302
 
303
  # Make predictions
304
  predictions = cnn_model.predict(X)
 
305
 
306
  # Convert predictions to label indexes
307
  predicted_label_indexes = np.argmax(predictions, axis=1)
@@ -310,6 +311,7 @@ async def handle_cnn(file: UploadFile = File(...)):
310
  predicted_labels = cnn_label_encoder.inverse_transform(predicted_label_indexes)
311
 
312
  print('decoded', predicted_labels)
 
313
  # .tolist()
314
  # Clean up the temporary file
315
  os.remove(temp_filename)
 
302
 
303
  # Make predictions
304
  predictions = cnn_model.predict(X)
305
+ print('predictions', predictions)
306
 
307
  # Convert predictions to label indexes
308
  predicted_label_indexes = np.argmax(predictions, axis=1)
 
311
  predicted_labels = cnn_label_encoder.inverse_transform(predicted_label_indexes)
312
 
313
  print('decoded', predicted_labels)
314
+ print('arg', np.argmax(predicted_labels, axis=1))
315
  # .tolist()
316
  # Clean up the temporary file
317
  os.remove(temp_filename)