saritha5 commited on
Commit
eb485ea
·
1 Parent(s): c34ee0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -134,13 +134,9 @@ else:
134
  st.image(image1,use_column_width = True)
135
  #image_path = Path(f.name)
136
  #st.write(image_path)
137
- path = f
138
- file1 = Image.open(io.BytesIO(image1.get_bytes()))
139
- compath = os.path.join(path,file1)
140
- print(file1)
141
- file1.save(compath,'png')
142
 
143
- predicted_label,variance_score = occ_predict(file1)
 
144
  #st.header(predicted_label)
145
  #st.header(str(round(variance_score,2)))
146
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
 
134
  st.image(image1,use_column_width = True)
135
  #image_path = Path(f.name)
136
  #st.write(image_path)
 
 
 
 
 
137
 
138
+
139
+ predicted_label,variance_score = occ_predict(f.name)
140
  #st.header(predicted_label)
141
  #st.header(str(round(variance_score,2)))
142
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))