Skip to content

Commit

Permalink
Merge pull request #58 from AI4Bharat/v1.0
Browse files Browse the repository at this point in the history
Disabled Processors for IndicConformer
  • Loading branch information
Shanks0465 authored Sep 10, 2024
2 parents 39e1705 + 0d97c0a commit e6bdc3e
Showing 1 changed file with 52 additions and 38 deletions.
90 changes: 52 additions & 38 deletions frontend/components/TryOut/ASR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,43 +304,57 @@ export default function ASR({ services }: { services: any }) {
)
)}
</Select>
<FormLabel textColor={"gray.500"}>Select Pre Processors:</FormLabel>
<Box>
<HStack spacing={4}>
{preProcessors.map((option) => (
<Checkbox
key={option}
isChecked={preProcessor.includes(option)}
onChange={() => handlePreCheckboxChange(option)}
>
{option}
</Checkbox>
))}
</HStack>
</Box>
<FormLabel textColor={"gray.500"}>Select Post Processors:</FormLabel>
<Box>
<HStack spacing={4}>
{postProcessors.map((option) => (
<Checkbox
key={option}
isChecked={postProcessor.includes(option)}
onChange={() => handlePostCheckboxChange(option)}
>
{option}
</Checkbox>
))}
</HStack>
</Box>
<FormLabel textColor={"gray.500"}>Select Sampling Rate:</FormLabel>
<Select
value={samplingRate}
onChange={(event) => setSamplingRate(parseInt(event.target.value))}
>
<option value={8000}>8000</option>
<option value={16000}>16000</option>
<option value={48000}>48000</option>
</Select>
{service !== "ai4bharat/conformer-multilingual-all--gpu-t4" ? (
<>
<FormLabel textColor={"gray.500"}>
Select Pre Processors:
</FormLabel>
<Box>
<HStack spacing={4}>
{preProcessors.map((option) => (
<Checkbox
key={option}
isChecked={preProcessor.includes(option)}
onChange={() => handlePreCheckboxChange(option)}
>
{option}
</Checkbox>
))}
</HStack>
</Box>
<FormLabel textColor={"gray.500"}>
Select Post Processors:
</FormLabel>
<Box>
<HStack spacing={4}>
{postProcessors.map((option) => (
<Checkbox
key={option}
isChecked={postProcessor.includes(option)}
onChange={() => handlePostCheckboxChange(option)}
>
{option}
</Checkbox>
))}
</HStack>
</Box>
<FormLabel textColor={"gray.500"}>
Select Sampling Rate:
</FormLabel>
<Select
value={samplingRate}
onChange={(event) =>
setSamplingRate(parseInt(event.target.value))
}
>
<option value={8000}>8000</option>
<option value={16000}>16000</option>
<option value={48000}>48000</option>
</Select>
</>
) : (
<></>
)}
<FormLabel textColor={"gray.500"}>Domain:</FormLabel>
<Select
value={domain}
Expand All @@ -365,7 +379,7 @@ export default function ASR({ services }: { services: any }) {
}}
recorderControls={recorderControls}
/>
{/* <FileUploadButton handleFileChange={handleFileChange} /> */}
<FileUploadButton handleFileChange={handleFileChange} />
</HStack>
<Textarea value={outputText} isReadOnly></Textarea>
{success ? (
Expand Down

0 comments on commit e6bdc3e

Please sign in to comment.