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-131] Text_upload #153

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Conversation

sanjaychelliah
Copy link
Contributor

What

  • Text upload from CSV, folder
  • Creating app with workflow id

Examples

# Note: CLARIFAI_PAT must be set as env variable.
from clarifai.client.user import User
client = User(user_id="user_id")

# Create app and dataset
app = client.create_app(app_id="demo_app")
dataset = app.create_dataset(dataset_id="demo_dataset")

#upload text from csv
dataset.upload_from_csv(csv_path='csv_path', labels=True)

#upload data from folder
dataset.upload_from_folder(folder_path='folder_path', input_type='text', labels=True)

Note

  • While creating app, default workflow_id is set as 'Language-Understanding' for now(Temporary, will revert to empty workflow after hackathon)
  • TODO: upload image_URLs from csv

Copy link
Contributor

@sainivedh sainivedh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Some minor Comments

README.md Outdated Show resolved Hide resolved
clarifai/client/dataset.py Outdated Show resolved Hide resolved
clarifai/client/dataset.py Outdated Show resolved Hide resolved
clarifai/client/user.py Outdated Show resolved Hide resolved
Copy link
Contributor

@sainivedh sainivedh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sanjaychelliah sanjaychelliah merged commit 87daccd into candidate-master Aug 24, 2023
@sanjaychelliah sanjaychelliah deleted the DEVX-131-text_upload branch August 24, 2023 13:28
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