File size: 1,754 Bytes
c2ba4d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import streamlit as st


def Navbar(sidebar_placeholder, toggle_hashstr: str = ""):
    with sidebar_placeholder.container():
        st.toggle(
            "🇰🇷 한국어로 보기",
            value=st.session_state.get("korean", False),
            key=f"korean_toggle_{toggle_hashstr}",  # Add this explicit key
            on_change=lambda: setattr(
                st.session_state,
                "korean",
                st.session_state.get(f"korean_toggle_{toggle_hashstr}", False),
            ),
        )

        st.page_link(
            "app.py",
            label="Varco Arena 구동" if st.session_state.korean else "Run VARCO Arena",
            icon="🔥",
        )
        st.page_link(
            "pages/see_results.py",
            label="결과 보기" if st.session_state.korean else "See Results",
            icon="📝",
            disabled=st.session_state.get("is_running", False),
        )
        st.page_link(
            "pages/brief_intro.py",
            label="어떻게 작동하나요?" if st.session_state.korean else "How it Works",
            icon="❔",
            disabled=st.session_state.get("is_running", False),
        )
        related_links_en = """
**About**
* [Paper](https://huggingface.co/papers/2411.01281)
* [Blog (KR)](https://ncsoft.github.io/ncresearch/12cc62c1ea0d981971a8923401e8fe6a0f18563d)
* [Inquiry](https://linkedin.com/in/deftson/)
""".strip()
        related_links_kr = """
**About**
* [논문](https://huggingface.co/papers/2411.01281)
* [블로그](https://ncsoft.github.io/ncresearch/12cc62c1ea0d981971a8923401e8fe6a0f18563d)
* [문의](https://linkedin.com/in/deftson/)
""".strip()
        st.info(related_links_kr if st.session_state.korean else related_links_en)