1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "claims": [{
9 "claimId": "demo-1",
10 "source": {
11 "url": "https://flintglade-tools.github.io/apify-fixtures/benchmarks/demo.html",
12 "locator": "#claim-1",
13 },
14 "model": {
15 "name": "ExampleModel",
16 "revision": "abc123",
17 },
18 "benchmark": {
19 "name": "ExampleBench",
20 "version": "1.0",
21 "split": "test",
22 },
23 "metric": {
24 "name": "accuracy",
25 "value": "0.812",
26 "unit": "fraction",
27 "direction": "higher_is_better",
28 },
29 "protocol": {
30 "shots": 0,
31 "promptTemplate": "fixture-v1",
32 },
33 }] }
34
35
36run = client.actor("flintglade/ai-benchmark-claim-normalizer").call(run_input=run_input)
37
38
39print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
40for item in client.dataset(run["defaultDatasetId"]).iterate_items():
41 print(item)
42
43