Spaces:
Runtime error
Runtime error
update make request module
Browse files- scripts/make_request.py +25 -23
scripts/make_request.py
CHANGED
@@ -69,36 +69,38 @@ def run_simulated_request(endpoint, sample_answer, context=None):
|
|
69 |
# run_simulated_request('nlu', 'Today is a wonderful day')
|
70 |
# run_simulated_request('nlu', 'IDK 5?')
|
71 |
# run_simulated_request('manager', '')
|
72 |
-
run_simulated_request('manager', 'add')
|
73 |
-
run_simulated_request('manager', 'subtract')
|
74 |
-
|
75 |
-
|
76 |
-
'
|
77 |
-
'
|
78 |
})
|
79 |
run_simulated_request("hint", {
|
80 |
-
'
|
81 |
-
'
|
82 |
-
'
|
83 |
-
'number_incorrect': 0,
|
84 |
-
'level': 'easy',
|
85 |
-
'hints_used': 0
|
86 |
})
|
87 |
-
run_simulated_request("
|
88 |
-
'
|
|
|
|
|
89 |
})
|
90 |
-
run_simulated_request("
|
91 |
-
'
|
|
|
92 |
})
|
93 |
-
run_simulated_request("
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
})
|
98 |
-
run_simulated_request("
|
99 |
-
|
100 |
-
|
|
|
101 |
})
|
|
|
102 |
# run_simulated_request('manager', 'exit')
|
103 |
|
104 |
|
|
|
69 |
# run_simulated_request('nlu', 'Today is a wonderful day')
|
70 |
# run_simulated_request('nlu', 'IDK 5?')
|
71 |
# run_simulated_request('manager', '')
|
72 |
+
# run_simulated_request('manager', 'add')
|
73 |
+
# run_simulated_request('manager', 'subtract')
|
74 |
+
|
75 |
+
run_simulated_request("start", {
|
76 |
+
'difficulty': 0.69,
|
77 |
+
'do_increase': True
|
78 |
})
|
79 |
run_simulated_request("hint", {
|
80 |
+
'start': 2,
|
81 |
+
'step': 1,
|
82 |
+
'difficulty': 0.01 # optional
|
|
|
|
|
|
|
83 |
})
|
84 |
+
run_simulated_request("question", {
|
85 |
+
'start': 2,
|
86 |
+
'step': 1,
|
87 |
+
'question_num': 2 # optional
|
88 |
})
|
89 |
+
run_simulated_request("difficulty", {
|
90 |
+
'difficulty': 0.01,
|
91 |
+
'do_increase': True # True | False
|
92 |
})
|
93 |
+
run_simulated_request("start_step", {
|
94 |
+
'start': 2,
|
95 |
+
'step': 1,
|
96 |
+
'difficulty': 0.01 # optional
|
97 |
})
|
98 |
+
run_simulated_request("sequence", {
|
99 |
+
'start': 2,
|
100 |
+
'step': 1,
|
101 |
+
'sep': '... '
|
102 |
})
|
103 |
+
|
104 |
# run_simulated_request('manager', 'exit')
|
105 |
|
106 |
|