Show HN: jev-bisect – Find answers with Jev via higher, lower, or

A Python library that uses Jev to find a numeric answer through repeated higher, lower, or exactly decisions. - mkly/jev-bisect
3 points by mkly 13 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

    ! pip install jev-bisect
    ! export TYPESAFE_API_KEY="your-typesafe-api-key" 
-------

   from jev_bisect import bisect

    result = bisect(
        "How many slices in a pizza?",
        min=0,
        max=100,
    )
    print(result.answer)
    print(result.turns)
-------

    $ 8
    $ 5

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open