Vokturz's picture
add loader to zero-shot classification and add sentiment analysis pipeline
0b82ec0
raw
history blame
614 Bytes
import React from 'react';
const pipelines = [
'zero-shot-classification',
'sentiment-analysis',
'image-classification',
'question-answering',
'translation',
];
interface PipelineSelectorProps {
pipeline: string;
setPipeline: (pipeline: string) => void;
}
const PipelineSelector: React.FC<PipelineSelectorProps> = ({ pipeline, setPipeline }) => {
return (
<select value={pipeline} onChange={(e) => setPipeline(e.target.value)}>
{pipelines.map((p) => (
<option key={p} value={p}>
{p}
</option>
))}
</select>
);
};
export default PipelineSelector;