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.",
Copy file name to clipboardExpand all lines: tests/test_batching.py
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
defml_task_evaluator():
10
10
fn_name, version_number, _=build(
11
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
12
+
multimodal=False,
13
13
)
14
14
returnfn_name, version_number
15
15
@@ -18,23 +18,29 @@ def ml_task_evaluator():
18
18
defml_task_inputs():
19
19
return [
20
20
{"text_input": "I want to train a model to predict house prices using the Boston Housing dataset hosted on Kaggle."},
21
-
{"text_input": "I want to train a model to classify digits using the MNIST dataset hosted on Kaggle using a Google Colab notebook."},
21
+
{
22
+
"text_input": "I want to train a model to classify digits using the MNIST dataset hosted on Kaggle using a Google Colab notebook."
23
+
},
22
24
]
23
25
24
26
25
27
@pytest.fixture
26
28
defimage_evaluator():
27
29
fn_name, version_number, _=build(
28
30
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.",
A list of inputs for the functions to query. The input must be a dictionary containing the data to be processed. e.g.,
500
523
when providing for a text input, the dictionary should be {"text_input": "input text"}, for an image input, the dictionary should be {"images_input": ["url1", "url2", ...]}
501
524
and for a combination of text and image inputs, the dictionary should be {"text_input": "input text", "images_input": ["url1", "url2", ...]}.
502
-
525
+
503
526
version_number : int, optional
504
527
The version number of the function to query. If not provided, the latest version will be used. Pass -1 to use the latest version.
0 commit comments