-
+
`;
if (find_checkpoints_by_run(run.run_id).length > 0) {
- run_download.innerHTML = `
-
`;
- run_download.disabled = run_is_working;
- run_download.addEventListener('click', (event) => {
- event.stopPropagation();
- if (run_is_working) {
- return;
- }
- download_lora_modal(run.run_id, "", is_deprecated);
- });
+ if(!run_is_working) {
+ run_download.innerHTML = `
+
`;
+ // run_download.disabled = run_is_working;
+ run_download.addEventListener('click', (event) => {
+ event.stopPropagation();
+ // if (run_is_working) {
+ // return;
+ // }
+ download_lora_modal(run.run_id, "", is_deprecated);
+ });
+ }
}
run_table_row.appendChild(run_name);
run_table_row.appendChild(run_status);
diff --git a/refact_webgui/webgui/static/tab-model-hosting.js b/refact_webgui/webgui/static/tab-model-hosting.js
index a1c8ebc5..e4dafc82 100644
--- a/refact_webgui/webgui/static/tab-model-hosting.js
+++ b/refact_webgui/webgui/static/tab-model-hosting.js
@@ -304,6 +304,7 @@ let toggle_menu_display = (menu) => {
}
function on_add_finetune_btn_click(el, event, models_info) {
+ get_models();
const target = event.currentTarget;
let finetune_info = document.querySelector(`.model-finetune-info[data-model="${target.dataset.model}"]`);
diff --git a/refact_webgui/webgui/static/tab-upload.js b/refact_webgui/webgui/static/tab-upload.js
index 97f41f30..03dd7d2f 100644
--- a/refact_webgui/webgui/static/tab-upload.js
+++ b/refact_webgui/webgui/static/tab-upload.js
@@ -801,13 +801,7 @@ export async function init(general_error) {
const proceed_finetune_button = document.querySelector('.proceed-finetune');
proceed_finetune_button.addEventListener('click', function() {
- document.querySelector('#upload').classList.remove('main-active');
- document.querySelector('#finetune').classList.add('main-active');
- document.querySelectorAll('.nav-link').forEach(function(link) {
- link.classList.remove('main-active');
- });
- let nav_link = document.querySelector('[data-tab="finetune"]');
- nav_link.classList.add('main-active');
+ document.querySelector('button[data-tab="finetune"]').click();
});
const new_project_input = document.querySelector('#tab-upload-new-project');