Mangla commited on
Commit
4354e8c
1 Parent(s): c01d1a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ with tempfile.TemporaryDirectory(dir=os.path.expanduser("~/app")) as temp_dir:
90
  # Get the file contents as a string
91
  str_data = config.read()
92
  # Write the string to the temporary file
93
- temp.write(str_data)
94
  config_temp_file = temp.name
95
  # Print the temporary file name
96
  print(temp.name)
 
90
  # Get the file contents as a string
91
  str_data = config.read()
92
  # Write the string to the temporary file
93
+ temp.write(bytes_data.decode())
94
  config_temp_file = temp.name
95
  # Print the temporary file name
96
  print(temp.name)