saritha5 commited on
Commit
934f938
·
1 Parent(s): 41e661b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,6 +26,7 @@ from skimage.transform import resize
26
  import random
27
  import os
28
  from io import BytesIO,StringIO
 
29
  import h5py
30
 
31
 
@@ -125,8 +126,8 @@ else:
125
  st.write(f.name)
126
  image1= Image.open(f)
127
  st.image(image1,use_column_width = True)
128
- image_path = f.name
129
- predicted_label,variance_score = occ_predict(f.name)
130
  #st.header(predicted_label)
131
  #st.header(str(round(variance_score,2)))
132
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
 
26
  import random
27
  import os
28
  from io import BytesIO,StringIO
29
+ from pathlib import Path
30
  import h5py
31
 
32
 
 
126
  st.write(f.name)
127
  image1= Image.open(f)
128
  st.image(image1,use_column_width = True)
129
+ image_path = Path(f)
130
+ predicted_label,variance_score = occ_predict(image_path)
131
  #st.header(predicted_label)
132
  #st.header(str(round(variance_score,2)))
133
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))