Skip to content

Commit

Permalink
Merge pull request #97 from HritikR/fix/whisper-websupport-66
Browse files Browse the repository at this point in the history
Fix: Whisper transcription not working on website version
  • Loading branch information
jackschedel authored Jan 11, 2024
2 parents 5be890c + 15fc443 commit 9422ec8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/components/Chat/ChatContent/Message/View/EditView.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { memo, useContext, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useStore from '@store/store';
import isElectron from '@utils/electron';
import useSubmit from '@hooks/useSubmit';

import { ChatInterface } from '@type/chat';
Expand Down Expand Up @@ -286,13 +285,11 @@ const EditViewButtons = memo(
</div>
<div className='flex-1 flex items-center justify-end'>
{sticky && <TokenCount />}
{isElectron() && (
<WhisperRecord
cursorPosition={cursorPosition}
_setContent={_setContent}
messageIndex={messageIndex}
/>
)}
<WhisperRecord
cursorPosition={cursorPosition}
_setContent={_setContent}
messageIndex={messageIndex}
/>
<CommandPrompt
cursorPosition={cursorPosition}
_setContent={_setContent}
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ export default defineConfig({
},
},
base: './',
optimizeDeps: {
include: ['@chengsokdara/use-whisper > lamejs'],
}
});

0 comments on commit 9422ec8

Please sign in to comment.