gurwindersingh commited on
Commit
ada3bcf
·
verified ·
1 Parent(s): 747ff01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -167,9 +167,10 @@ def main():
167
  if uploaded_file is not None:
168
  col1, col2 = st.columns(2)
169
  col1.subheader("Sudoku Puzzle:")
170
- puzzle = Image.open(uploaded_file)
 
171
  col1.image(puzzle, use_column_width=True)
172
- puzzle = np.asarray(puzzle)
173
 
174
  # Resizing puzzle to be solved
175
  puzzle = cv2.resize(puzzle, (450,450))
 
167
  if uploaded_file is not None:
168
  col1, col2 = st.columns(2)
169
  col1.subheader("Sudoku Puzzle:")
170
+ puzzle = cv2.imread(uploaded_file)
171
+ # puzzle = Image.open(uploaded_file)
172
  col1.image(puzzle, use_column_width=True)
173
+ # puzzle = np.asarray(puzzle)
174
 
175
  # Resizing puzzle to be solved
176
  puzzle = cv2.resize(puzzle, (450,450))