Skip to content

StableArtGen Blockchain is a dApp that uses AI, smart contracts and ReactJS to generate stable images based on user prompts, with Hugging Face integration and support for IPFS and nft.storage on the Polygon Mumbai Testnet.

License

Notifications You must be signed in to change notification settings

querylab/StableArtGen-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StableArtGen-Blockchain 🤖🛒💎🎴

StableArtGen Blockchain is a dApp that uses artificial intelligence technology and smart contracts written in Solidity and Hardhat, along with ReactJS for the user interface. With support for IPFS and nft.storage, it allows users to generate stable images based on user-provided prompts, while integration with Hugging Face and its Stable Diffusion 2 API allows to leverage AI-driven image generation. Requires creating nft.storage and Hugging Face accounts to obtain the respective APIs and using Stable Diffusion 2 to generate AI images.

Setting Up


1. Clone the repository

2. Install dependencies

$ cd StableArtGen-Blockchain
$ npm install --save-dev hardhat

3. Change variables in Files

# hardhat.config.js
$ ALCHEMY_API_KEY
$ privateKey
# src/config.json 
$ Contract address
# src/App.js 
$ REACT_APP_HUGGING_FACE_API_KEY
$ REACT_APP_NFT_STORAGE_API_KEY

4. Deployment Solidity Contract Addresses

$ npx hardhat clean
$ npx hardhat compile

5. Run tests

$ npx hardhat test
$ npx hardhat run scripts/deploy.js --network mumbai

#After deploying the stableartgen.sol replace this address in src/config.json file with the variable:

 address:"0xeD323A00601297Cb364A99bE8061a00a6C5D527b"

6. Localhost Deployment

npm install 

npm start

http://localhost:3000/

About

StableArtGen Blockchain is a dApp that uses AI, smart contracts and ReactJS to generate stable images based on user prompts, with Hugging Face integration and support for IPFS and nft.storage on the Polygon Mumbai Testnet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published