Spaces:
Runtime error
Runtime error
Claude commited on
Fix: 방 입장 후에도 관리자 바로가기 버튼 유지
Browse fileshttps://claude.ai/code/session_01VubVHht1kvabfdfFR1weKs
app.py
CHANGED
|
@@ -78,7 +78,20 @@ current_topic = topic_data.get('title', "자유 주제로 대화해 봅시다.")
|
|
| 78 |
current_mode = topic_data.get('mode', "⚔️ 찬반 토론")
|
| 79 |
act_type = "토론" if "토론" in current_mode else "토의"
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
st.info(f"**현재 주제:** {current_topic} ({current_mode})")
|
| 83 |
|
| 84 |
st.subheader("🗣️ 내 의견 작성")
|
|
|
|
| 78 |
current_mode = topic_data.get('mode', "⚔️ 찬반 토론")
|
| 79 |
act_type = "토론" if "토론" in current_mode else "토의"
|
| 80 |
|
| 81 |
+
if admin_auth:
|
| 82 |
+
col_title, col_btn1, col_btn2 = st.columns([4, 1, 1])
|
| 83 |
+
with col_title:
|
| 84 |
+
st.title(f"🎙️ 말자취(Talk-Trace) AI [{room_name}]")
|
| 85 |
+
with col_btn1:
|
| 86 |
+
if st.button("📝 ID 요청 수락", use_container_width=True):
|
| 87 |
+
st.session_state['page'] = "admin_approval"
|
| 88 |
+
st.rerun()
|
| 89 |
+
with col_btn2:
|
| 90 |
+
if st.button("🚪 말자취 AI 대기실", use_container_width=True):
|
| 91 |
+
st.session_state['page'] = "lobby"
|
| 92 |
+
st.rerun()
|
| 93 |
+
else:
|
| 94 |
+
st.title(f"🎙️ 말자취(Talk-Trace) AI [{room_name}]")
|
| 95 |
st.info(f"**현재 주제:** {current_topic} ({current_mode})")
|
| 96 |
|
| 97 |
st.subheader("🗣️ 내 의견 작성")
|