Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -509,10 +509,10 @@ def main():
|
|
| 509 |
#data = fi.read()
|
| 510 |
#fi.seek(0)
|
| 511 |
file_jso = open('smalljson.json','r+')
|
| 512 |
-
st.write(file_jso)
|
| 513 |
file_jso.truncate(0)
|
| 514 |
file_jso.write(json_data)
|
| 515 |
-
st.write('after',file_jso)
|
| 516 |
file_jso.close()
|
| 517 |
# api.upload_file(
|
| 518 |
# path_or_fileobj=json_data,
|
|
|
|
| 509 |
#data = fi.read()
|
| 510 |
#fi.seek(0)
|
| 511 |
file_jso = open('smalljson.json','r+')
|
| 512 |
+
st.write(file_jso.read())
|
| 513 |
file_jso.truncate(0)
|
| 514 |
file_jso.write(json_data)
|
| 515 |
+
st.write('after',file_jso.read())
|
| 516 |
file_jso.close()
|
| 517 |
# api.upload_file(
|
| 518 |
# path_or_fileobj=json_data,
|