Overview
Provide a csv in the format : ex)
id,image_link,title 1, <absolute_path_to_file>, This Is a Title
Output:
id,original_image_link,title, image_link 1,<absolute_path_to_file>,This is a title, <some_url_with_the_new_file>
Variables
|
Name |
Reference |
Type |
Required |
Default |
Options |
Description |
|---|---|---|---|---|---|---|
|
Client Slug |
GPS_CLIENT_SLUG |
Alphanumeric |
✅ |
- |
- |
Client ID to use |
|
Workflows File Name Or Pattern |
GPS_FILENAME_OR_PATTERN |
Alphanumeric |
✅ |
- |
- |
Workflows file name or regex pattern to use for the input file |
|
Workflows Folder Name |
GPS_SOURCE_FOLDER_NAME |
Alphanumeric |
➖ |
- |
- |
Folder name containing CSV to be processed |
|
Match Type |
GPS_MATCH_TYPE |
Select |
✅ |
exact_match |
Exact: exact_match
|
Choose exact to use the name of the csv to process, or regex to use a pattern to search for the csv file |
|
Image Column Name |
GPS_IMAGE_COLUMN_NAME |
Alphanumeric |
✅ |
- |
- |
Name of the column that has the paths to the images |
|
Output File Name |
GPS_OUTPUT_FILE_NAME |
Alphanumeric |
✅ |
- |
- |
Name of the file to output to |
|
Output Column Name |
GPS_OUTPUT_COLUMN_NAME |
Alphanumeric |
✅ |
- |
- |
The name of the column to store the results of the background removal |
|
Test First Row |
GPS_TEST_ONE_ROW |
Boolean |
➖ |
- |
- |
If TRUE, process only the first row for testing |
YAML
Below is the YAML template
source:
template: Google Product Studio - Remove Background
inputs:
GPS_CLIENT_SLUG:
GPS_FILENAME_OR_PATTERN:
GPS_SOURCE_FOLDER_NAME:
GPS_MATCH_TYPE: exact_match
GPS_IMAGE_COLUMN_NAME:
GPS_OUTPUT_FILE_NAME:
GPS_OUTPUT_COLUMN_NAME:
GPS_TEST_ONE_ROW:
type: TEMPLATE
guardrails:
retry_count: 0
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 200