0.1.1 • Published 6 months ago

flymy-widgets-react v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Flymy-widgets-react

Launching via storybook

  1. Download from github :
  git clone git@github.com:FlyMyAI/flymy-widgets-react.git
  1. Install Dependencies :
  npm install
  1. Launch storybook :
  npm run storybook

P.S. Storybrooke is set up for user flymyai/llama-v2-7b, later I will add a change to the user and network.

Installation in the project

  1. Install:
  npm i flymy-widgets-react

or

  yarn add flymy-widgets-react
  1. Import Widget component:
  import { Widget } from "flymy-widgets-react";
  1. Call the component and pass the open schema:
  <Widget schema={schema} />

The component parses the circuit itself.

Example

  1. We get the scheme
const [specResponse, setSpecResponse] = useState(null);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);

useEffect(() => {
  const fetchData = async () => {
    try {
      const response = await getProjectSchema(
        "your_username",
        "model_name",
        "api_key"
      );
      setSpecResponse(await response.json());
    } catch (error) {
      setError("Error fetching schema:", error);
    } finally {
      setLoading(false);
    }
  };

  fetchData();
}, []);
  1. Importing the wrapper and the necessary components
import { FMAWidgets, Inputs, Outputs, Widgets } from "flymy-widgets-react";

<FMAWidgets schema={specResponse}>....</FMAWidgets>;
  1. Example
<FMAWidgets schema={specResponse}>
  <h1>Inputs</h1>
  <Inputs />
  <h1>Outputs</h1>
  <Outputs />
  <h1>Widgets</h1>
  <Widgets />
</FMAWidgets>
  1. List:
  • Inputs - Returns input fields based on the schema
  • Outputs - Returns a block based on scheme c to output the result of AI operation
  • Widgets - Returns a standalone component based on a schema with input, output fields, and buttons
0.1.0

6 months ago

0.1.1

6 months ago

0.0.54

6 months ago

0.0.55

6 months ago

0.0.56

6 months ago

0.0.57

6 months ago

0.0.40

6 months ago

0.0.41

6 months ago

0.0.42

6 months ago

0.0.43

6 months ago

0.0.44

6 months ago

0.0.45

6 months ago

0.0.46

6 months ago

0.0.47

6 months ago

0.0.37

6 months ago

0.0.38

6 months ago

0.0.39

6 months ago

0.0.30

6 months ago

0.0.31

6 months ago

0.0.32

6 months ago

0.0.33

6 months ago

0.0.34

6 months ago

0.0.35

6 months ago

0.0.36

6 months ago

0.0.51

6 months ago

0.0.52

6 months ago

0.0.53

6 months ago

0.0.50

6 months ago

0.0.48

6 months ago

0.0.49

6 months ago

0.0.25

6 months ago

0.0.26

6 months ago

0.0.27

6 months ago

0.0.28

6 months ago

0.0.29

6 months ago

0.0.20

6 months ago

0.0.21

6 months ago

0.0.22

6 months ago

0.0.23

6 months ago

0.0.24

6 months ago

0.0.18

6 months ago

0.0.19

6 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago