Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -508,7 +508,7 @@ def main():
|
|
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)
|
@@ -577,17 +577,17 @@ def main():
|
|
577 |
# side_css('side.css')
|
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 |
-
|
584 |
-
|
585 |
-
# css_file = CSS_PATH / "tree.css"
|
586 |
-
# css_file1 = CSS_PATH / "div.css"
|
587 |
-
# css_file2 = CSS_PATH / "side.css"
|
588 |
-
css_file2 = CSS_PATH / "ch.json"
|
589 |
-
if not css_file2.exists():
|
590 |
-
|
591 |
# shutil.copy("assets/css/tree.css", css_file)
|
592 |
# shutil.copy("assets/css/div.css", css_file1)
|
593 |
# shutil.copy("assets/css/side.css", css_file2)
|
|
|
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)
|
|
|
577 |
# side_css('side.css')
|
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 |
+
|
585 |
+
# # css_file = CSS_PATH / "tree.css"
|
586 |
+
# # css_file1 = CSS_PATH / "div.css"
|
587 |
+
# # css_file2 = CSS_PATH / "side.css"
|
588 |
+
# css_file2 = CSS_PATH / "ch.json"
|
589 |
+
# if not css_file2.exists():
|
590 |
+
# shutil.copy("css/ch.json", css_file2)
|
591 |
# shutil.copy("assets/css/tree.css", css_file)
|
592 |
# shutil.copy("assets/css/div.css", css_file1)
|
593 |
# shutil.copy("assets/css/side.css", css_file2)
|