Pavani2704 commited on
Commit
a68d627
·
verified ·
1 Parent(s): 313893f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,9 +40,9 @@ elif option == "Image Classification":
40
  text=st.text_area("Enter possible class names(comma separated")
41
  candidate_lables=[t.strip() for t in text.split(',')]
42
  if uploaded_files is not None:
43
- Image=Image.open(uploaded_files)
44
 
45
- outputs = imgpipe(uploaded_files,candidate_lables)
46
 
47
  st.write(output["label"])
48
 
 
40
  text=st.text_area("Enter possible class names(comma separated")
41
  candidate_lables=[t.strip() for t in text.split(',')]
42
  if uploaded_files is not None:
43
+ image = Image.open(requests.get(uploaded_files, stream=True).raw)
44
 
45
+ outputs = imgpipe(image,candidate_lables)
46
 
47
  st.write(output["label"])
48