Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
337 changes: 240 additions & 97 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ python3 -m venv .venv
pip install -r requirements.txt
```
## Set Up Environment Variables
### How to get secret key
Check existence after login at dashboard.eyepop.ai. If forget/not there, recreate/create the api key and store in secure place.
### How to get an API key
Sign in to [dashboard.eyepop.ai](https://dashboard.eyepop.ai) and create or find your API key under your profile settings.
### Export them
```shell
export EYEPOP_SECRET_KEY=... # your secret key
export EYEPOP_API_KEY=... # your API key
```
## Run an example script
```shell
Expand Down
2 changes: 1 addition & 1 deletion examples/caption_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
targets=[InferenceComponent(
id=2,
categoryName='answers',
model='eyepop.question-answer.preview:latest',
ability='eyepop.question-answer.preview:latest',
params={
"prompt": main_args.question
}
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/create_dataset_and_train_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def auto_annotate_dataset(endpoint: SyncDataEndpoint, dataset_uuid: str, auto_an
auto_annotates=[auto_annotate],
auto_annotate_params=auto_annotate_params
), False)
with WaitForSync(endpoint=endpoint, dataset_uuid=dataset_uuid, criteria=analysis_done_criteria):
with WaitForSync(endpoint=endpoint, dataset_uuid=dataset_uuid, criteria=auto_annotate_done_criteria):
log.info("before auto annotates start for dataset %s", dataset_uuid)
endpoint.auto_annotate_dataset_version(dataset_uuid, None)
log.info("auto annotates started for dataset %s", dataset_uuid)
Expand Down
107 changes: 0 additions & 107 deletions examples/experimental/import_model_and_alias.py

This file was deleted.

2 changes: 1 addition & 1 deletion examples/live_rtmp_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def on_ready(job: Job):
print(result)

async with EyePopSdk.workerEndpoint(is_async=True) as endpoint:
await endpoint.load_from(url, on_ready)
await endpoint.load_from(url, on_ready=on_ready)


t1 = time.time()
Expand Down
45 changes: 0 additions & 45 deletions examples/load_from_url_timing.py

This file was deleted.

Loading
Loading