[Update/Chore] UI: Compute Type: Rename and add endpoint '/run/'.
This commit is contained in:
@@ -256,12 +256,12 @@ export const useTranscription = () => {
|
||||
|
||||
const getSelectedTranscriptionComputeType = () => {
|
||||
pendingSelectedTranscriptionComputeType();
|
||||
asyncStdoutToPython("/get/data/transcription_compute_type");
|
||||
asyncStdoutToPython("/get/data/selected_transcription_compute_type");
|
||||
};
|
||||
|
||||
const setSelectedTranscriptionComputeType = (selected_transcription_compute_type) => {
|
||||
pendingSelectedTranscriptionComputeType();
|
||||
asyncStdoutToPython("/set/data/transcription_compute_type", selected_transcription_compute_type);
|
||||
asyncStdoutToPython("/set/data/selected_transcription_compute_type", selected_transcription_compute_type);
|
||||
};
|
||||
|
||||
const setSuccessSelectedTranscriptionComputeType = (selected_transcription_compute_type) => {
|
||||
|
||||
@@ -87,12 +87,12 @@ export const useTranslation = () => {
|
||||
|
||||
const getSelectedTranslationComputeType = () => {
|
||||
pendingSelectedTranslationComputeType();
|
||||
asyncStdoutToPython("/get/data/translation_compute_type");
|
||||
asyncStdoutToPython("/get/data/selected_translation_compute_type");
|
||||
};
|
||||
|
||||
const setSelectedTranslationComputeType = (selected_translation_compute_type) => {
|
||||
pendingSelectedTranslationComputeType();
|
||||
asyncStdoutToPython("/set/data/translation_compute_type", selected_translation_compute_type);
|
||||
asyncStdoutToPython("/set/data/selected_translation_compute_type", selected_translation_compute_type);
|
||||
};
|
||||
|
||||
const setSuccessSelectedTranslationComputeType = (selected_translation_compute_type) => {
|
||||
|
||||
Reference in New Issue
Block a user