saritha5 commited on
Commit
e03bb58
·
1 Parent(s): d6a0471

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -127,14 +127,13 @@ else:
127
  else:
128
  #stringio = StringIO(f.getvalue())
129
  #f = stringio.read()
130
- st.write(f)
131
  image1= Image.open(f)
132
  st.write(type(image1))
133
  st.image(image1,use_column_width = True)
134
  #image_path = Path(f.name)
135
  #st.write(image_path)
136
 
137
- predicted_label,variance_score = occ_predict(f)
138
  #st.header(predicted_label)
139
  #st.header(str(round(variance_score,2)))
140
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
 
127
  else:
128
  #stringio = StringIO(f.getvalue())
129
  #f = stringio.read()
 
130
  image1= Image.open(f)
131
  st.write(type(image1))
132
  st.image(image1,use_column_width = True)
133
  #image_path = Path(f.name)
134
  #st.write(image_path)
135
 
136
+ predicted_label,variance_score = occ_predict(str(f.name))
137
  #st.header(predicted_label)
138
  #st.header(str(round(variance_score,2)))
139
  string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))