Spaces:
Configuration error
Configuration error
Update app.py
Browse files
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(
|
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)
|