Soumen commited on
Commit
6f995cc
·
1 Parent(s): cb6a8b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def main():
133
  values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*10)])
134
  text = tet[values[0]*7*10:values[1]*7*10] if values[0]!=len(tet)//(7*10) else tet[len(tet)//(7*10):]
135
  st.success(text)
136
- elif uploaded_photo.type == "application/image":
137
  img = Image.open(uploaded_photo)
138
  img = img.save("img.png")
139
  img = cv2.imread("img.png")
 
133
  values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*10)])
134
  text = tet[values[0]*7*10:values[1]*7*10] if values[0]!=len(tet)//(7*10) else tet[len(tet)//(7*10):]
135
  st.success(text)
136
+ if uploaded_photo.type == "application/image":
137
  img = Image.open(uploaded_photo)
138
  img = img.save("img.png")
139
  img = cv2.imread("img.png")