rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,12 +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 |
-
|
|
|
|
|
|
|
|
|
30 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
31 |
temp_file3.write(report)
|
32 |
temp_file3.close()
|
33 |
|
34 |
-
return temp_file1.name ,temp_file2.name ,temp_file3.
|
35 |
|
36 |
|
37 |
with gr.Blocks() as cluster:
|
|
|
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 |
+
print(type(report))
|
34 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
35 |
temp_file3.write(report)
|
36 |
temp_file3.close()
|
37 |
|
38 |
+
return temp_file1.name ,temp_file2.name ,temp_file3.name
|
39 |
|
40 |
|
41 |
with gr.Blocks() as cluster:
|