File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ _(This example is complete, it can be run "as is")_
313
313
314
314
You can control concurrency during evaluation (this might be useful to prevent exceeding a rate limit):
315
315
316
- ``` python {title="parallel_evaluation_example.py" line_length="100"}
316
+ ``` python {title="parallel_evaluation_example.py" line_length="100" test="skip" }
317
317
import asyncio
318
318
import time
319
319
@@ -341,8 +341,8 @@ async def double_number(input_value: int) -> int:
341
341
# Run evaluation with unlimited concurrency
342
342
t0 = time.time()
343
343
report_default = dataset.evaluate_sync(double_number)
344
- print (f ' Evaluation took less than 1s : { time.time() - t0 < 1 } ' )
345
- # > Evaluation took less than 1s : True
344
+ print (f ' Evaluation took less than 0.5s : { time.time() - t0 < 0.5 } ' )
345
+ # > Evaluation took less than 0.5s : True
346
346
347
347
report_default.print(include_input = True , include_output = True , include_durations = False ) # (1)!
348
348
"""
You can’t perform that action at this time.
0 commit comments