Auto-Labeling Script – Device Setup
Complete one-time device setup, token configuration, and script parameters to authenticate and communicate with the TensorAct platform without manual OTP entry.
Overview
Before running the auto-labeling script on a device, complete the following one-time setup steps. These steps configure the device token and model script so that the script can authenticate and communicate with the TensorAct platform without requiring manual OTP entry on every run.
Step 1: API User Login
Open Application
Open the TensorAct application in your browser.
Navigate to Login
Go to the Login page.
Enter Credentials
Enter the API user’s credentials (Email and Password).
Enter OTP (if requested)
If an OTP is requested, enter the OTP received for the API user.
Remember this device
Enable Remember this device during login.
Verify Login
Complete the login and verify that you have successfully logged in to the application.
Step 2: Update Device Token
After successfully logging in, follow the steps below to retrieve and update the device token.
A. Open Developer Tools
Right-Click Page
Right-click anywhere on the application page.
Select Inspect
Select Inspect.
Developer Tools Window
The Developer Tools window will open.
Application Tab
Go to the Application tab.
B. Locate the Device Token
Check Local Storage
In the Application tab, check the sections on the left side, such as Local Storage.
Select Domain
Select the domain/environment where the TensorAct application is running.
– Look for an entry with a key matching the pattern: fmn_*device*_token
Locate Entry
Locate the entry containing the device token.
Copy Token Value
Copy the device token value.
Figure 1: Developer Tools — Locating the Device Token in Local Storage
C. Update plugin_client.py
Open Repository
Open the project/code repository.
Locate File
Locate the file: plugin_client.py.
Find Configuration
Find the configuration/value where the device token is defined.
Replace Token
Replace the existing device token with the newly retrieved device token.
Save File
Save the file.
Step 3: Update Model Script Configuration
Open Model Script
Open the model script in the project/code repository.
– PLUGIN_NAME must match the name as in the workflow configuration.
Update Pathway ID
Update the Pathway ID in the model script.
Obtain Pathway ID
The Pathway ID can be obtained from the workflow configured for the respective project.
Update API Credentials
Update the API user’s credentials in the script as required.
Save Script
Save the updated model script.
Step 4: Project ID
Identify Project ID
Identify the Project ID for the project where the workflow is configured.
Locate in URL
The Project ID is the number displayed at the end of the project’s URL.
Example: https://<host>/projects/123 → Project ID = 123