rita-cohere commited on
Commit
564efbd
·
verified ·
1 Parent(s): e248a0f

Fix NameError: USER_INSTRUCTIONS after SYSTEM is defined

Browse files
Files changed (1) hide show
  1. script.py +5 -7
script.py CHANGED
@@ -82,13 +82,6 @@ VARIANT_CFG = {
82
  CFG = VARIANT_CFG.get(VARIANT, VARIANT_CFG["p0-reroll"])
83
  print(f"VARIANT={VARIANT} CFG={CFG}", flush=True)
84
 
85
- USER_INSTRUCTIONS = SYSTEM # same text; optionally placed on user turn
86
- USE_USER_INSTR = bool(CFG.get("user_instr"))
87
- if USE_USER_INSTR:
88
- SYSTEM_RUNTIME = ""
89
- else:
90
- SYSTEM_RUNTIME = SYSTEM
91
-
92
  SYSTEM = (
93
  "You solve International Linguistics Olympiad problems by reasoning from the "
94
  "data in CONTEXT you are given to solve the problems in QUERY. \n"
@@ -116,6 +109,11 @@ SYSTEM = (
116
  "bare answer only, no numbering, no quotes, no extra text, according to the given TASK TYPE."
117
  )
118
 
 
 
 
 
 
119
  SYSTEM_INDUCT = (
120
  "You analyze International Linguistics Olympiad CONTEXT examples only. "
121
  "Deduce linguistic rules. Do NOT answer QUERY. "
 
82
  CFG = VARIANT_CFG.get(VARIANT, VARIANT_CFG["p0-reroll"])
83
  print(f"VARIANT={VARIANT} CFG={CFG}", flush=True)
84
 
 
 
 
 
 
 
 
85
  SYSTEM = (
86
  "You solve International Linguistics Olympiad problems by reasoning from the "
87
  "data in CONTEXT you are given to solve the problems in QUERY. \n"
 
109
  "bare answer only, no numbering, no quotes, no extra text, according to the given TASK TYPE."
110
  )
111
 
112
+
113
+ USER_INSTRUCTIONS = SYSTEM # same text; optionally placed on user turn
114
+ USE_USER_INSTR = bool(CFG.get("user_instr"))
115
+ SYSTEM_RUNTIME = "" if USE_USER_INSTR else SYSTEM
116
+
117
  SYSTEM_INDUCT = (
118
  "You analyze International Linguistics Olympiad CONTEXT examples only. "
119
  "Deduce linguistic rules. Do NOT answer QUERY. "