rameshmoorthy commited on
Commit
0d398ac
1 Parent(s): ca341c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def generate_report(file, type):
37
  print(contents)
38
 
39
  temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
40
- temp_file3.write(report)
41
  temp_file3.close()
42
 
43
  return temp_file1.name ,temp_file2.name ,temp_file3.name
 
37
  print(contents)
38
 
39
  temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
40
+ temp_file3.write(contents.encode('utf-8'))
41
  temp_file3.close()
42
 
43
  return temp_file1.name ,temp_file2.name ,temp_file3.name