rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,16 @@ def generate_report(file, type):
|
|
26 |
sweetviz_report = sv.analyze(df)
|
27 |
#sweetviz_report=sweetviz_report.show_html()
|
28 |
#print(type(sweetviz_report))
|
29 |
-
report=show_html( filepath='SWEETVIZ_REPORT.html',
|
30 |
open_browser=False,
|
31 |
layout='widescreen',
|
32 |
scale=None)
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
34 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
35 |
temp_file3.write(report)
|
36 |
temp_file3.close()
|
|
|
26 |
sweetviz_report = sv.analyze(df)
|
27 |
#sweetviz_report=sweetviz_report.show_html()
|
28 |
#print(type(sweetviz_report))
|
29 |
+
report=sweetviz_report.show_html( filepath='SWEETVIZ_REPORT.html',
|
30 |
open_browser=False,
|
31 |
layout='widescreen',
|
32 |
scale=None)
|
33 |
+
HTMLFileToBeOpened = open('SWEETVIZ_REPORT.html', "r")
|
34 |
+
|
35 |
+
# Reading the file and storing in a variable
|
36 |
+
contents = HTMLFileToBeOpened.read()
|
37 |
+
print(contents))
|
38 |
+
|
39 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
40 |
temp_file3.write(report)
|
41 |
temp_file3.close()
|