You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task_description="Evaluate, solve and arrive at a numerical answer for the image provided. Provide a json object with 'answer' and 'explanation' keys."
70
+
fn_name, version_number, fn_desc=awaitabuild(
71
+
task_description="Evaluate, solve and arrive at a numerical answer for the image provided. Provide a json object with 'answer' and 'explanation' keys.",
Copy file name to clipboardExpand all lines: tests/test_batching.py
+34-25Lines changed: 34 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -5,62 +5,71 @@
5
5
6
6
# Internally, these functions use the WecoAI client
7
7
# therefore, we can test both the client and functional forms here
8
-
# We do NOT need to test for a list of function names here since interally
9
-
# we cast the input to a list of function names to match the fn_input size
10
8
@pytest.fixture
11
9
defml_task_evaluator():
12
-
fn_name, _=build(
13
-
task_description="I want to evaluate the feasibility of a machine learning task. Give me a json object with three keys - 'feasibility', 'justification', and 'suggestions'."
10
+
fn_name, version_number, _=build(
11
+
task_description="I want to evaluate the feasibility of a machine learning task. Give me a json object with three keys - 'feasibility', 'justification', and 'suggestions'.",
12
+
multimodal=False
14
13
)
15
-
returnfn_name
14
+
returnfn_name, version_number
16
15
17
16
18
17
@pytest.fixture
19
18
defml_task_inputs():
20
19
return [
21
20
{"text_input": "I want to train a model to predict house prices using the Boston Housing dataset hosted on Kaggle."},
22
-
{
23
-
"text_input": "I want to train a model to classify digits using the MNIST dataset hosted on Kaggle using a Google Colab notebook."
24
-
},
21
+
{"text_input": "I want to train a model to classify digits using the MNIST dataset hosted on Kaggle using a Google Colab notebook."},
25
22
]
26
23
27
24
28
25
@pytest.fixture
29
26
defimage_evaluator():
30
-
fn_name, _=build(
31
-
task_description="Describe the contents of the given images. Provide a json object with 'description' and 'objects' keys."
27
+
fn_name, version_number, _=build(
28
+
task_description="Describe the contents of the given images. Provide a json object with 'description' and 'objects' keys.",
task_description="Evaluate, solve and arrive at a numerical answer for the image provided. Perform any additional things if instructed. Provide a json object with 'answer' and 'explanation' keys."
67
+
fn_name, version_number, fn_desc=build(
68
+
task_description="Evaluate, solve and arrive at a numerical answer for the image provided. Perform any additional things if instructed. Provide a json object with 'answer' and 'explanation' keys.",
0 commit comments