소스 검색

yapf formatting

cadenmackenzie 8 달 전
부모
커밋
8ee6cc3b0c
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      exo/tinychat/index.js

+ 8 - 8
exo/tinychat/index.js

@@ -111,15 +111,15 @@ document.addEventListener("alpine:init", () => {
         Array.from(sel.options).forEach(opt => {
           const modelInfo = data["model pool"][opt.value];
           if (modelInfo) {
-              let displayText = modelInfo.name;
-              if (modelInfo.download_percentage != null) {
-                  if (modelInfo.downloaded) {
-                      displayText += ' (downloaded)';
-                  } else {
-                      displayText += ` (${Math.round(modelInfo.download_percentage)}% downloaded)`;
-                  }
+            let displayText = modelInfo.name;
+            if (modelInfo.download_percentage != null) {
+              if (modelInfo.downloaded) {
+                  displayText += ' (downloaded)';
+              } else {
+                  displayText += ` (${Math.round(modelInfo.download_percentage)}% downloaded)`;
               }
-              opt.textContent = displayText;
+            }
+            opt.textContent = displayText;
           }
       });
       } catch (error) {