Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEVX-324]: Download inputs #263

Merged
merged 2 commits into from
Jan 10, 2024
Merged

[DEVX-324]: Download inputs #263

merged 2 commits into from
Jan 10, 2024

Conversation

sanjaychelliah
Copy link
Contributor

what

  • Download inputs feature(SDH)
#listing inputs
input_generator = input_obj.list_inputs(page_no=1,per_page=1,input_type='image')
inputs_list = list(input_generator)

#downloading_inputs
input_bytes = input_obj.download_inputs(inputs_list)
with open('demo.jpg','wb') as f:
  f.write(input_bytes[0])
  • Unit test and readme changes for the same.

clarifai/client/input.py Outdated Show resolved Hide resolved
clarifai/client/input.py Show resolved Hide resolved
@sanjaychelliah sanjaychelliah merged commit eec9f57 into master Jan 10, 2024
17 checks passed
@sanjaychelliah sanjaychelliah deleted the DEVX-324-input_download branch January 10, 2024 12:29
@sanjaychelliah sanjaychelliah mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants