saritha5 commited on
Commit
1e65f01
·
1 Parent(s): be724bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -123,7 +123,8 @@ else:
123
  else:
124
  image1= Image.open(f)
125
  st.image(image1,use_column_width = True)
126
- predicted_label,variance_score = occ_predict(image1)
 
127
  #st.header(predicted_label)
128
  #st.header(str(round(variance_score,2)))
129
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
 
123
  else:
124
  image1= Image.open(f)
125
  st.image(image1,use_column_width = True)
126
+ image_path = f.name
127
+ predicted_label,variance_score = occ_predict(image_path)
128
  #st.header(predicted_label)
129
  #st.header(str(round(variance_score,2)))
130
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))