This project shows the process of calling the API of a project deployed in Ainize using AI Network Blockchain. Here, we will intro the process of writing down the results from the model after setting the Trigger Function on Blockchain using the API of the model that was fine-tuned (GPT-2) with the novel Pride and Prejudice.
AI Network Blockchain, which can handle large-scale transactions, has been designed to securely record communications between clients as well as sending requests and nodes processing tasks. A more detailed description of AI Network Blockchain can be found here.
Check out Ainize Trigger Tutorial. In this tutorial, you will learn to:
- Create an App on the AI Network Blockchain and register a Trigger Function through Ainize
- Use the Trigger Function
- Write Values on AI Network Blockchain
If you want to use the Trigger of this project, please check the link.
In this project, the database path for triggers goes one step further into the depth of appName. For example, it should be something like /apps/appName/input
, but I recommend the format /apps/appName/$timestamp/input
for readability.
Then, the value will be written to the path of /apps/appName/$timestamp/result