17 lines
448 B
JavaScript
17 lines
448 B
JavaScript
import { useStdoutToPython } from "@useStdoutToPython";
|
|
|
|
export const useUpdateSoftware = () => {
|
|
const { asyncStdoutToPython } = useStdoutToPython();
|
|
const updateSoftware = () => {
|
|
asyncStdoutToPython("/run/update_software");
|
|
};
|
|
|
|
const updateSoftware_CUDA = () => {
|
|
asyncStdoutToPython("/run/update_cuda_software");
|
|
};
|
|
|
|
return {
|
|
updateSoftware,
|
|
updateSoftware_CUDA,
|
|
};
|
|
}; |