Update app.py
Browse files
app.py
CHANGED
|
@@ -23,18 +23,7 @@ if uploaded_file is not None:
|
|
| 23 |
|
| 24 |
# Show the report in an iframe
|
| 25 |
st.components.v1.html(report_html, height=1200, scrolling=True)
|
| 26 |
-
|
| 27 |
-
# Provide a download button for the HTML
|
| 28 |
-
st.write("### Download the Profiling Report")
|
| 29 |
-
# Convert HTML string to bytes
|
| 30 |
-
report_bytes = report_html.encode('utf-8')
|
| 31 |
-
st.download_button(
|
| 32 |
-
label="Download HTML",
|
| 33 |
-
data=report_bytes,
|
| 34 |
-
file_name="profiling_report.html",
|
| 35 |
-
mime="text/html"
|
| 36 |
-
)
|
| 37 |
-
|
| 38 |
except Exception as e:
|
| 39 |
st.error(f"An error occurred: {e}")
|
| 40 |
else:
|
|
|
|
| 23 |
|
| 24 |
# Show the report in an iframe
|
| 25 |
st.components.v1.html(report_html, height=1200, scrolling=True)
|
| 26 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
except Exception as e:
|
| 28 |
st.error(f"An error occurred: {e}")
|
| 29 |
else:
|