Spaces:
Sleeping
Sleeping
Commit
·
4b0b162
1
Parent(s):
f2c369b
Update app.py
Browse files
app.py
CHANGED
@@ -185,12 +185,10 @@ def main():
|
|
185 |
grid = np.reshape(grid,(9,9))
|
186 |
solve(grid)
|
187 |
|
188 |
-
|
189 |
-
col2.header("Solution ?")
|
190 |
# Display the solution or appropriate message
|
191 |
-
if
|
192 |
col2.subheader("Sudoku Solved:")
|
193 |
-
st.write(
|
194 |
else:
|
195 |
st.write("No solution found.")
|
196 |
|
|
|
185 |
grid = np.reshape(grid,(9,9))
|
186 |
solve(grid)
|
187 |
|
|
|
|
|
188 |
# Display the solution or appropriate message
|
189 |
+
if grid:
|
190 |
col2.subheader("Sudoku Solved:")
|
191 |
+
st.write(grid)
|
192 |
else:
|
193 |
st.write("No solution found.")
|
194 |
|