Spaces:
Sleeping
Sleeping
Commit
·
1783f03
1
Parent(s):
8a83802
Update app.py
Browse files
app.py
CHANGED
@@ -213,5 +213,20 @@ def main():
|
|
213 |
else:
|
214 |
st.write("No Solution Found.")
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
if __name__ == '__main__':
|
217 |
main()
|
|
|
213 |
else:
|
214 |
st.write("No Solution Found.")
|
215 |
|
216 |
+
col2.subheader("Sudoku Solved:")
|
217 |
+
|
218 |
+
table_html = "<table style='border-collapse: collapse;'>"
|
219 |
+
|
220 |
+
for row in grid:
|
221 |
+
table_html += "<tr>"
|
222 |
+
for value in row:
|
223 |
+
table_html += f"<td style='border: 1px solid black; padding: 8px;'>{value}</td>"
|
224 |
+
table_html += "</tr>"
|
225 |
+
|
226 |
+
table_html += "</table>"
|
227 |
+
|
228 |
+
st.markdown(table_html, unsafe_allow_html=True)
|
229 |
+
|
230 |
+
|
231 |
if __name__ == '__main__':
|
232 |
main()
|