Added rounding to load percent of the model

This commit is contained in:
Camerin Figueroa 2022-01-15 13:35:11 -05:00
parent aad9676f16
commit 637ec60544
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import github from '../apis/github';
import api from '../apis/api';
import * as tf from '@tensorflow/tfjs';
import _ from 'lodash';
export const getUser = (username) => async (dispatch, getState) => {
const response = await github.get(`/users/${username}`);
@ -100,7 +100,7 @@ export const downloadModel = () => async (dispatch, getState) => {
dispatch({
type: 'SET_PROGRESS',
payload: p.toFixed(2)*100
payload: _.round(p)
});
}
}