yvesJR-237 commited on
Commit
45389f2
·
verified ·
1 Parent(s): f4ff386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,8 +43,8 @@ def Analysing_image(st, model, image_file):
43
 
44
  # Assuming a multi-class classification where the class with the highest probability is selected:
45
  predicted_class = np.argmax(predictions, axis=1)
46
- st.write("Prediction :", keys(str(predicted_class[0])))
47
- return keys(str(predicted_class[0]))
48
  except:
49
  return None
50
 
 
43
 
44
  # Assuming a multi-class classification where the class with the highest probability is selected:
45
  predicted_class = np.argmax(predictions, axis=1)
46
+ st.write("Prediction :", keys[str(predicted_class[0])])
47
+ return keys[str(predicted_class[0])]
48
  except:
49
  return None
50