different submit function
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def make_submission(
|
|
29 |
timestamp = datetime.utcnow().isoformat()
|
30 |
|
31 |
with (path_obj.open("rb") as f_in):
|
32 |
-
file_content = f_in.read()
|
33 |
|
34 |
# write to dataset
|
35 |
filename = f"{user_state}/{timestamp.replace(':', '-')}_{user_state}.json"
|
|
|
29 |
timestamp = datetime.utcnow().isoformat()
|
30 |
|
31 |
with (path_obj.open("rb") as f_in):
|
32 |
+
file_content = f_in.read().decode("utf-8")
|
33 |
|
34 |
# write to dataset
|
35 |
filename = f"{user_state}/{timestamp.replace(':', '-')}_{user_state}.json"
|