Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,6 @@ def init_game_state(llm_personality: str, info_sharing: str, participant_id: str
|
|
| 100 |
'incoming_order': 0, 'order_placed': 0, 'shipment_sent': 0,
|
| 101 |
'weekly_cost': 0, 'total_cost': 0, 'upstream_name': upstream, 'downstream_name': downstream,
|
| 102 |
}
|
| 103 |
-
# [修改点 2.1]: 移除启动时显示实验条件的提示
|
| 104 |
st.info(f"New game started for **{participant_id}**! You are the **{human_role}**.")
|
| 105 |
# ==============================================================================
|
| 106 |
def get_llm_order_decision(prompt: str, echelon_name: str) -> (int, str):
|
|
@@ -603,7 +602,7 @@ if st.session_state.get('initialization_error'):
|
|
| 603 |
st.error(st.session_state.initialization_error)
|
| 604 |
# --- Consent Form Display Logic ---
|
| 605 |
elif not st.session_state['consent_given']:
|
| 606 |
-
st.header("📝 Participant Consent Form
|
| 607 |
st.markdown("""
|
| 608 |
**Project Title:** Behavioural Contagion or Rational Alignment? Human Performance in LLM Supply Chains
|
| 609 |
|
|
@@ -633,7 +632,7 @@ elif not st.session_state['consent_given']:
|
|
| 633 |
index=None
|
| 634 |
)
|
| 635 |
|
| 636 |
-
if st.button("Continue
|
| 637 |
if consent_choice == 'Yes, I agree to participate in this study.':
|
| 638 |
st.session_state['consent_given'] = True
|
| 639 |
st.rerun()
|
|
|
|
| 100 |
'incoming_order': 0, 'order_placed': 0, 'shipment_sent': 0,
|
| 101 |
'weekly_cost': 0, 'total_cost': 0, 'upstream_name': upstream, 'downstream_name': downstream,
|
| 102 |
}
|
|
|
|
| 103 |
st.info(f"New game started for **{participant_id}**! You are the **{human_role}**.")
|
| 104 |
# ==============================================================================
|
| 105 |
def get_llm_order_decision(prompt: str, echelon_name: str) -> (int, str):
|
|
|
|
| 602 |
st.error(st.session_state.initialization_error)
|
| 603 |
# --- Consent Form Display Logic ---
|
| 604 |
elif not st.session_state['consent_given']:
|
| 605 |
+
st.header("📝 Participant Consent Form")
|
| 606 |
st.markdown("""
|
| 607 |
**Project Title:** Behavioural Contagion or Rational Alignment? Human Performance in LLM Supply Chains
|
| 608 |
|
|
|
|
| 632 |
index=None
|
| 633 |
)
|
| 634 |
|
| 635 |
+
if st.button("Continue"):
|
| 636 |
if consent_choice == 'Yes, I agree to participate in this study.':
|
| 637 |
st.session_state['consent_given'] = True
|
| 638 |
st.rerun()
|