Skip to content

Commit

Permalink
Merge branch 'v1.0' of github.com:AI4Bharat/ai4b-website into v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Sep 10, 2024
2 parents a93557a + 0d13459 commit 77cd905
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/components/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ export default function Feedback({
task,
modelInput,
modelResponse,
sourceLanguage,
targetLanguage,
}: {
serviceId: string;
task: string;
modelInput: string;
modelResponse: string;
sourceLanguage: string;
targetLanguage: string;
}) {
const { isOpen, onOpen, onClose } = useDisclosure();

Expand Down Expand Up @@ -151,6 +155,8 @@ export default function Feedback({
serviceId: serviceId,
modelInput: modelInput,
modelResponse: modelResponse,
sourceLanguage: sourceLanguage,
targetLanguage: targetLanguage,
});
if (feedbackSubmitted) {
toast({
Expand Down
4 changes: 3 additions & 1 deletion frontend/components/TryOut/ASR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export default function ASR({ services }: { services: any }) {
}}
recorderControls={recorderControls}
/>
<FileUploadButton handleFileChange={handleFileChange} />
{/* <FileUploadButton handleFileChange={handleFileChange} /> */}
</HStack>
<Textarea value={outputText} isReadOnly></Textarea>
{success ? (
Expand All @@ -374,6 +374,8 @@ export default function ASR({ services }: { services: any }) {
task="asr"
modelInput={audioString}
modelResponse={outputText}
sourceLanguage={sourceLanguage}
targetLanguage={""}
/>
) : (
<></>
Expand Down
2 changes: 2 additions & 0 deletions frontend/components/TryOut/NMT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ export default function NMT({ services }: { services: any }) {
task="translation"
modelInput={inputText}
modelResponse={outputText}
sourceLanguage={sourceLanguage}
targetLanguage={targetLanguage}
/>
) : (
<></>
Expand Down
2 changes: 2 additions & 0 deletions frontend/components/TryOut/TTS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ export default function TTS({ services }: { services: any }) {
task="tts"
modelInput={inputText}
modelResponse={output}
sourceLanguage={sourceLanguage}
targetLanguage=""
/>
) : (
<></>
Expand Down

0 comments on commit 77cd905

Please sign in to comment.