Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -1631,6 +1631,7 @@ def _toolbar_fragment():
|
|
| 1631 |
if st.button(m, key=f"mdl_{m}", use_container_width=True, type=_btn_type):
|
| 1632 |
if m != _current_model:
|
| 1633 |
st.session_state["sel_model"] = m
|
|
|
|
| 1634 |
|
| 1635 |
with _btn_cols[1]:
|
| 1636 |
if IS_GUEST:
|
|
@@ -1639,6 +1640,7 @@ def _toolbar_fragment():
|
|
| 1639 |
_web_label = "🌐 联网模式" if _web_status else "📚 知识库"
|
| 1640 |
if st.button(_web_label, key="toggle_web", use_container_width=True):
|
| 1641 |
st.session_state["sel_web"] = not _web_status
|
|
|
|
| 1642 |
|
| 1643 |
_toolbar_fragment()
|
| 1644 |
|
|
|
|
| 1631 |
if st.button(m, key=f"mdl_{m}", use_container_width=True, type=_btn_type):
|
| 1632 |
if m != _current_model:
|
| 1633 |
st.session_state["sel_model"] = m
|
| 1634 |
+
st.rerun()
|
| 1635 |
|
| 1636 |
with _btn_cols[1]:
|
| 1637 |
if IS_GUEST:
|
|
|
|
| 1640 |
_web_label = "🌐 联网模式" if _web_status else "📚 知识库"
|
| 1641 |
if st.button(_web_label, key="toggle_web", use_container_width=True):
|
| 1642 |
st.session_state["sel_web"] = not _web_status
|
| 1643 |
+
st.rerun()
|
| 1644 |
|
| 1645 |
_toolbar_fragment()
|
| 1646 |
|