0.1.1 • Published 7 months ago

flymy-widgets-react v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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

7 months ago

0.1.1

7 months ago

0.0.54

7 months ago

0.0.55

7 months ago

0.0.56

7 months ago

0.0.57

7 months ago

0.0.40

7 months ago

0.0.41

7 months ago

0.0.42

7 months ago

0.0.43

7 months ago

0.0.44

7 months ago

0.0.45

7 months ago

0.0.46

7 months ago

0.0.47

7 months ago

0.0.37

7 months ago

0.0.38

7 months ago

0.0.39

7 months ago

0.0.30

7 months ago

0.0.31

7 months ago

0.0.32

7 months ago

0.0.33

7 months ago

0.0.34

7 months ago

0.0.35

7 months ago

0.0.36

7 months ago

0.0.51

7 months ago

0.0.52

7 months ago

0.0.53

7 months ago

0.0.50

7 months ago

0.0.48

7 months ago

0.0.49

7 months ago

0.0.25

7 months ago

0.0.26

7 months ago

0.0.27

7 months ago

0.0.28

7 months ago

0.0.29

7 months ago

0.0.20

7 months ago

0.0.21

7 months ago

0.0.22

7 months ago

0.0.23

7 months ago

0.0.24

7 months ago

0.0.18

7 months ago

0.0.19

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago