Spaces:
Runtime error
Runtime error
gchhablani
commited on
Commit
β’
f54892c
1
Parent(s):
b1f5f2e
Fix tensorboard - last attempt
Browse files- apps/article.py +5 -3
- apps/streamlit_tensorboard.py +2 -2
apps/article.py
CHANGED
@@ -3,7 +3,7 @@ from apps.utils import read_markdown
|
|
3 |
from .streamlit_tensorboard import st_tensorboard, kill_tensorboard
|
4 |
from .utils import Toc
|
5 |
def app(state=None):
|
6 |
-
kill_tensorboard()
|
7 |
toc = Toc()
|
8 |
st.info("Welcome to our Multilingual-VQA demo. Please use the navigation sidebar to move to our demo, or scroll below to read all about our project. π€ In case the sidebar isn't properly rendered, please change to a smaller window size and back to full screen.")
|
9 |
|
@@ -30,7 +30,8 @@ def app(state=None):
|
|
30 |
st.write(read_markdown("pretraining/model.md"))
|
31 |
toc.subsubheader("MLM Training Logs")
|
32 |
st.info("In case the TensorBoard logs are not displayed, please visit this link: https://huggingface.co/flax-community/multilingual-vqa-pt-ckpts/tensorboard")
|
33 |
-
|
|
|
34 |
|
35 |
|
36 |
toc.subheader("Finetuning")
|
@@ -40,7 +41,8 @@ def app(state=None):
|
|
40 |
st.write(read_markdown("finetuning/model.md"))
|
41 |
toc.subsubheader("VQA Training Logs")
|
42 |
st.info("In case the TensorBoard logs are not displayed, please visit this link: https://huggingface.co/flax-community/multilingual-vqa-pt-60k-ft/tensorboard")
|
43 |
-
|
|
|
44 |
|
45 |
toc.header("Challenges and Technical Difficulties")
|
46 |
st.write(read_markdown("challenges.md"))
|
|
|
3 |
from .streamlit_tensorboard import st_tensorboard, kill_tensorboard
|
4 |
from .utils import Toc
|
5 |
def app(state=None):
|
6 |
+
#kill_tensorboard()
|
7 |
toc = Toc()
|
8 |
st.info("Welcome to our Multilingual-VQA demo. Please use the navigation sidebar to move to our demo, or scroll below to read all about our project. π€ In case the sidebar isn't properly rendered, please change to a smaller window size and back to full screen.")
|
9 |
|
|
|
30 |
st.write(read_markdown("pretraining/model.md"))
|
31 |
toc.subsubheader("MLM Training Logs")
|
32 |
st.info("In case the TensorBoard logs are not displayed, please visit this link: https://huggingface.co/flax-community/multilingual-vqa-pt-ckpts/tensorboard")
|
33 |
+
if state.tb1 is None:
|
34 |
+
state.tb1 = st_tensorboard(logdir='./logs/pretrain_logs', port=6006)
|
35 |
|
36 |
|
37 |
toc.subheader("Finetuning")
|
|
|
41 |
st.write(read_markdown("finetuning/model.md"))
|
42 |
toc.subsubheader("VQA Training Logs")
|
43 |
st.info("In case the TensorBoard logs are not displayed, please visit this link: https://huggingface.co/flax-community/multilingual-vqa-pt-60k-ft/tensorboard")
|
44 |
+
if state.tb2 is None:
|
45 |
+
state.tb2 = st_tensorboard(logdir='./logs/finetune_logs', port=6007)
|
46 |
|
47 |
toc.header("Challenges and Technical Difficulties")
|
48 |
st.write(read_markdown("challenges.md"))
|
apps/streamlit_tensorboard.py
CHANGED
@@ -67,8 +67,8 @@ def st_tensorboard(logdir="/logs/", port=6006, width=None, height=800, scrolling
|
|
67 |
</script>
|
68 |
"""
|
69 |
|
70 |
-
|
71 |
-
args_string = f"--logdir {logdir} --host localhost"
|
72 |
parsed_args = shlex.split(args_string, comments=True, posix=True)
|
73 |
start_result = manager.start(parsed_args)
|
74 |
|
|
|
67 |
</script>
|
68 |
"""
|
69 |
|
70 |
+
args_string = f"--logdir {logdir} --port {port}"
|
71 |
+
#args_string = f"--logdir {logdir} --host localhost"
|
72 |
parsed_args = shlex.split(args_string, comments=True, posix=True)
|
73 |
start_result = manager.start(parsed_args)
|
74 |
|