Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,30 +54,6 @@ EXPERIMENT_SETTINGS = [
|
|
| 54 |
('perfect_rational', 'full'),
|
| 55 |
]
|
| 56 |
|
| 57 |
-
# --- 新增:理解性问题题库 ---
|
| 58 |
-
COMPREHENSION_QUESTIONS = [
|
| 59 |
-
{
|
| 60 |
-
"q": "1. Which role are you playing in this supply chain experiment?",
|
| 61 |
-
"options": ["Retailer", "Wholesaler", "Distributor", "Factory"],
|
| 62 |
-
"correct_index": 2, # Distributor
|
| 63 |
-
},
|
| 64 |
-
{
|
| 65 |
-
"q": "2. What is your primary objective as a manager in this game?",
|
| 66 |
-
"options": ["Maximize on-hand inventory.", "Minimize total accumulated costs (holding + backlog).", "Maximize weekly order quantity.", "Minimize customer demand."],
|
| 67 |
-
"correct_index": 1, # Minimize total costs
|
| 68 |
-
},
|
| 69 |
-
{
|
| 70 |
-
"q": "3. Your final order quantity for the Factory will typically arrive at your location after how many weeks?",
|
| 71 |
-
"options": ["1 week", "2 weeks", "3 weeks", "4 weeks"],
|
| 72 |
-
"correct_index": 2, # 3 weeks (1 order pass + 1 production + 1 factory ship = 3 weeks total lead time)
|
| 73 |
-
},
|
| 74 |
-
{
|
| 75 |
-
"q": "4. At the end of the week, your holding cost is $0.50 per unit, and your backlog cost is $1.00 per unit. If your final inventory is **0** units and you have a remaining **Backlog of 15** units, what is your **Total Weekly Cost**?",
|
| 76 |
-
"options": ["$7.50", "$15.00", "$15.50", "$0.00"],
|
| 77 |
-
"correct_index": 1, # Calculation: (0 * 0.50) + (15 * 1.00) = 15.00
|
| 78 |
-
},
|
| 79 |
-
]
|
| 80 |
-
|
| 81 |
# --- API & Secrets Configuration ---
|
| 82 |
try:
|
| 83 |
# 注意:在多Space部署中,每个Space的secrets中只放一个API KEY
|
|
|
|
| 54 |
('perfect_rational', 'full'),
|
| 55 |
]
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# --- API & Secrets Configuration ---
|
| 58 |
try:
|
| 59 |
# 注意:在多Space部署中,每个Space的secrets中只放一个API KEY
|