Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -508,12 +508,12 @@ def main():
|
|
508 |
#with open("smalljson.json", "r+") as fi:
|
509 |
#data = fi.read()
|
510 |
#fi.seek(0)
|
511 |
-
with open('smalljson.json','
|
512 |
data = json.load(fi)
|
513 |
#st.write(data)
|
514 |
fi.seek(0)
|
515 |
fi.write(json_data)
|
516 |
-
|
517 |
# file_jso.truncate(0)
|
518 |
# file_jso.write(json_data)
|
519 |
# st.write('after',file_jso.read())
|
@@ -578,7 +578,7 @@ def main():
|
|
578 |
|
579 |
|
580 |
STREAMLIT_STATIC_PATH = pathlib.Path(st.__path__[0]) / 'static'
|
581 |
-
CSS_PATH = (STREAMLIT_STATIC_PATH / "
|
582 |
if not CSS_PATH.is_dir():
|
583 |
CSS_PATH.mkdir()
|
584 |
|
|
|
508 |
#with open("smalljson.json", "r+") as fi:
|
509 |
#data = fi.read()
|
510 |
#fi.seek(0)
|
511 |
+
with open('smalljson.json','w') as fi:
|
512 |
data = json.load(fi)
|
513 |
#st.write(data)
|
514 |
fi.seek(0)
|
515 |
fi.write(json_data)
|
516 |
+
# fi.truncate()
|
517 |
# file_jso.truncate(0)
|
518 |
# file_jso.write(json_data)
|
519 |
# st.write('after',file_jso.read())
|
|
|
578 |
|
579 |
|
580 |
STREAMLIT_STATIC_PATH = pathlib.Path(st.__path__[0]) / 'static'
|
581 |
+
CSS_PATH = (STREAMLIT_STATIC_PATH / "css")
|
582 |
if not CSS_PATH.is_dir():
|
583 |
CSS_PATH.mkdir()
|
584 |
|