This Dapp allows you to browse the list of SingularityNET Agents from the SingularityNET Registry and call them to provide a Service. The Dapp uses the SingularityNET contracts deployed on the Kovan testnet.
To get Kovan AGI to use the Dapp you can use the official SingularityNET AGI Faucet. To get Kovan ETH to pay for gas costs you should refer to this repo.
The DApp can currently only interact with services that match the API of the example service. This will change in the future as we support a generic mechanism to declaratively describe a service's API. In the interim, steps [11, 14] are specific to the example service's input and output format.
These instructions can also be found at the SingularityNET Community Wiki
- Get Ether and AGI on the Kovan network
- Navigate to the SingularityNET alpha dapp
- Unlock MetaMask
- Click the "Create Job" button to the right of the "Alpha TensorFlow Agent"
- Click the "Create Job Contract" button at the bottom of the "Job" pane
- Click the "SUBMIT" button in the "CONFIRM TRANSACTION" dialogue
- Click the "Approve AGI Transfer" button at the bottom of the "Job" pane
- Click the "SUBMIT" button in the "CONFIRM TRANSACTION" dialogue
- Click the "Fund Job Contract" button at the bottom of the "Job" pane
- Click the "SUBMIT" button in the "CONFIRM TRANSACTION" dialogue
- Use the file uploader to upload an image of your choice
- Click the "Call Agent API" button at the bottom of the "Job" pane
- Click the "Sign" button in the "CONFIRM TRANSACTION" dialogue
- View the predictions and confidences for the image classification in the "Job" pane
- Install Node.js and npm
npm install
to get dependenciesnpm run serve
to serve the application locally and watch source files for modifications
npm run build
builds the application distributable files to thedist
directorynpm run deploy
; the target S3 Bucket for the deployment and its region are specified as command line parameters in the package.json file npm script
npm run build-analyze
shows the size of the application's bundle components; the original size, the parsed size (uglified + tree-shaken) and the gzipped sizenpm run serve-dist
serves thedist
directory locally