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

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 === "sentiment-analysis" && <SentimentAnalysis />}
    </div>
  );
}

export default App;