Seetha commited on
Commit
be0978c
·
1 Parent(s): ed885cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -509,9 +509,9 @@ def main():
509
  #data = fi.read()
510
  #fi.seek(0)
511
  file_jso = open('smalljson.json','r+')
512
- file.truncate(0)
513
- file.write(json_data)
514
- fi.close()
515
  # api.upload_file(
516
  # path_or_fileobj=json_data,
517
  # path_in_repo="ch.json",
 
509
  #data = fi.read()
510
  #fi.seek(0)
511
  file_jso = open('smalljson.json','r+')
512
+ file_jso.truncate(0)
513
+ file_jso.write(json_data)
514
+ file_jso.close()
515
  # api.upload_file(
516
  # path_or_fileobj=json_data,
517
  # path_in_repo="ch.json",