Skip to content

Commit

Permalink
IssueId #223075 Apply Loader till model is download and stored into DB
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyapandetekdi committed Jul 23, 2024
1 parent 8966f36 commit c1859e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/Assesment/Assesment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export const LanguageModal = ({
let db;

// Open IndexedDB

const openDB = () => {
return new Promise((resolve, reject) => {
const request = window.indexedDB.open(dbName, dbVersion);
Expand Down Expand Up @@ -157,7 +156,7 @@ export const LanguageModal = ({
try {
window.whisperModule.FS_unlink("whisper.bin");
} catch (e) {
// ignore
console.log(e)
}
try {
let transaction;
Expand Down Expand Up @@ -828,7 +827,6 @@ const Assesment = ({ discoverStart }) => {
const dbVersion = 1;
let db;


// Function to check if the model is already stored in IndexedDB
const isModelStored = async (modelName) => {
return new Promise((resolve, reject) => {
Expand All @@ -855,7 +853,7 @@ const Assesment = ({ discoverStart }) => {
try {
window.whisperModule.FS_unlink("whisper.bin");
} catch (e) {
// ignore
console.log(e)
}
try {
let transaction;
Expand Down
1 change: 0 additions & 1 deletion src/components/CommonComponent/ProgressOverlay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const ProgressOverlay = ({
variant="determinate"
value={downloadProgress}
sx={{
height: 10,
borderRadius: 5,
height: 20,
'& .MuiLinearProgress-bar': {
Expand Down

0 comments on commit c1859e7

Please sign in to comment.