File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ test-integ: install ## Run tests against the integ API server (needs GROUNDLIGH
3737 GROUNDLIGHT_ENDPOINT=" https://api.integ.groundlight.ai/" ${PYTEST} ${TEST_ARGS} test
3838
3939test-docs : install # # Run the example code and tests in our docs against the prod API (needs GROUNDLIGHT_API_TOKEN)
40- poetry run pytest -v --markdown-docs ${TEST_ARGS} docs
40+ poetry run pytest -v --markdown-docs ${TEST_ARGS} docs README.md
4141
4242# Adjust which paths we lint
4343LINT_PATHS ="src test bin samples"
Original file line number Diff line number Diff line change @@ -8,14 +8,18 @@ Groundlight makes it simple to build reliable visual applications. Read the [ful
88pip install groundlight
99```
1010
11- Build a working computer vision system in just 5 lines of python:
11+ Build a working computer vision system in just a few lines of python:
1212
1313``` python
1414from groundlight import Groundlight
15+ from PIL import Image
16+ import requests
1517
1618gl = Groundlight()
17- d = gl.get_or_create_detector(name = " door" , query = " Is the door open?" )
18- image_query = gl.submit_image_query(detector = d, image = jpeg_img)
19+ d = gl.get_or_create_detector(name = " doorway" , query = " Is the doorway open?" )
20+ image_url = " https://images.selfstorage.com/large-compress/2174925f24362c479b2.jpg"
21+ image = Image.open(requests.get(image_url, stream = True ).raw)
22+ image_query = gl.submit_image_query(detector = d, image = image)
1923print (f " The answer is { image_query.result} " )
2024```
2125
Original file line number Diff line number Diff line change 11[tool .poetry ]
22authors = [
" Groundlight AI <[email protected] >" ]
33description = " Build computer vision systems from natural language with Groundlight"
4- homepage = " https://www .groundlight.ai"
4+ homepage = " https://code .groundlight.ai/python-sdk "
55license = " MIT"
66name = " groundlight"
77packages = [
88 {include = " **/*.py" , from = " generated" },
99 {include = " **/*.py" , from = " src" },
1010]
1111readme = " README.md"
12- version = " 0.7.6 "
12+ version = " 0.7.7 "
1313
1414[tool .poetry .dependencies ]
1515certifi = " ^2021.10.8"
You can’t perform that action at this time.
0 commit comments