react-image-classifier

Reference implementation of a React app using Golem underneath

Stars
0
Committers
2

Object detection with Golem - An example React application that interacts with the Golem network.

The purpose of this example is to show how to interact with a local Yagna node from a React application. The application is a simple image classifier that uses a pre-trained model to detect objects in an image. The source of the Golem image containing the model is the /detr-golem-image-source directory.

The application is built with Vite and React. It uses Golem React SDK to interact with the Golem network. For styling, it uses Tailwind CSS and DaisyUI.

Documentation

To get started with the Golem React SDK, please refer to the documentation.

Local setup

  1. Clone the repository
  2. Install dependencies with npm install
  3. Start the local Yagna node with yagna service run --api-allow-origin='localhost:5173'
  4. Start the application with npm run dev

You can now access the application at http://localhost:5173.