Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def generate_report(file, type):
|
|
| 48 |
html_report =ydata_profiling.ProfileReport(df).to_html()
|
| 49 |
|
| 50 |
temp_file = NamedTemporaryFile(delete=False, suffix=".html")
|
| 51 |
-
temp_file.write(
|
| 52 |
temp_file.close()
|
| 53 |
return temp_file.name ,html_report
|
| 54 |
|
|
|
|
| 48 |
html_report =ydata_profiling.ProfileReport(df).to_html()
|
| 49 |
|
| 50 |
temp_file = NamedTemporaryFile(delete=False, suffix=".html")
|
| 51 |
+
temp_file.write(html_report.encode('utf-8'))
|
| 52 |
temp_file.close()
|
| 53 |
return temp_file.name ,html_report
|
| 54 |
|