Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
513 |
-
|
514 |
-
|
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",
|