1.0.9 • Published 11 months ago

@landingai-js/react v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@landingai-js/react

React components to fetch and render predictions from an image.

Usage

import React from 'react';
import { useState } from "react";
import { InferenceContext, InferenceResult, PhotoCollector } from "@landingai-js/react";

const apiInfo = {
  endpoint: `https://predict.app.landing.ai/inference/v1/predict?endpoint_id=<endpoint_id>`,
  key: "<api_key>",
  secret: "<api_secret>",
};

export default function App() {
  const [image, setImage] = useState<Blob>();

  return (
    <InferenceContext.Provider value={apiInfo}>
      <PhotoCollector setImage={setImage} />
      <InferenceResult image={image} />
    </InferenceContext.Provider>
  );
}

References

Examples

1.0.9

11 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.1

12 months ago

1.0.1-alpha.0

12 months ago

1.0.1-beta.0

12 months ago

0.0.1-alpha.36

12 months ago

0.0.1-alpha.35

12 months ago

0.0.1-alpha.31

12 months ago

0.0.1-alpha.28

12 months ago

0.0.1-alpha.27

12 months ago

0.0.1-alpha.26

12 months ago

0.0.1-alpha.25

12 months ago

0.0.1-alpha.24

12 months ago

0.0.1-alpha.20

12 months ago

0.0.1-alpha.19

12 months ago

0.0.1-alpha.18

12 months ago

0.0.1-alpha.17

12 months ago

0.0.1-alpha.16

12 months ago

0.0.1-alpha.15

12 months ago

0.0.1-alpha.14

12 months ago

0.0.1-alpha.13

12 months ago

0.0.1-alpha.12

12 months ago

0.0.1-alpha.10

12 months ago