File size: 568 Bytes
5786921
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Typography } from "@mui/material";
import { HfInference } from "@huggingface/inference";
import { useEffect } from "react";
import Summarization from "./inference/summarization";

export type InferenceProps = {
  token?: string;
  model: string;
};

export default function Huggingface() {
  return (
    <>
      <Typography component="h4" variant="h4">
        huggingface.js
      </Typography>

      <Typography component="h5" variant="h5">
        Summarization
      </Typography>
      <Summarization model="facebook/bart-large-cnn" />
    </>
  );
}