import * as socket from '../socket' export const get_params = () => { socket.get_params() return { type: 'GET_PARAMS', } } export const set_param = (key, value) => { console.log('set param', key, value) socket.set_param(key, value) return { type: 'SET_PARAM', key, value, } } export const list_checkpoints = () => { socket.list_checkpoints() return { type: 'LOADING_CHECKPOINTS', } } export const list_datasets = () => { socket.list_datasets() return { type: 'LOADING_DATASETS', } }