cgeorgiaw HF Staff commited on
Commit
311a1b8
·
1 Parent(s): 0fb1f33

different submit function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"