File size: 671 Bytes
948b11c
85a4687
 
 
 
5fe09e3
 
85a4687
948b11c
5fe09e3
948b11c
85a4687
 
 
5fe09e3
 
 
 
 
85a4687
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// src/App.tsx
import { useState } from "react";
import PipelineSelector from "./components/PipelineSelector";
import ZeroShotClassification from "./components/ZeroShotClassification";
import TextClassification from "./components/TextClassification";

function App() {
  const [pipeline, setPipeline] = useState("zero-shot-classification");

  return (
    <div className="flex flex-col h-screen w-screen p-1">
      <PipelineSelector pipeline={pipeline} setPipeline={setPipeline} />
      {pipeline === "zero-shot-classification" && <ZeroShotClassification />}
      {pipeline === "text-classification" && <TextClassification />}
    </div>
  );
}

export default App;