Skip to content

Commit c023b83

Browse files
authored
Merge pull request #41 from code-kern-ai/remove-gates
Removes gates
2 parents 551544a + b10aa09 commit c023b83

File tree

79 files changed

+85
-2897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+85
-2897
lines changed

src/components/models-download/AddModelDownloadModal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default function AddModelDownloadModal() {
2525
const [modelName, setModelName] = useState('');
2626
const [colorDownloadedModels, setColorDownloadedModels] = useState<boolean[]>([]);
2727
const [hoverBoxList, setHoverBoxList] = useState<any[]>([]);
28-
const [lineSeparatorIndex, setLineSeparatorIndex] = useState(-1);
2928
const [filteredList, setFilteredList] = useState<any[]>(null);
3029

3130
useEffect(() => {
@@ -49,7 +48,6 @@ export default function AddModelDownloadModal() {
4948
}
5049
});
5150
setHoverBoxList(hoverBoxList);
52-
setLineSeparatorIndex(filteredList.findIndex((model: any) => !model.description));
5351
}, [modelsDownloaded, filteredList, modalAddModel, modelsList, modelName]);
5452

5553
const addModel = useCallback(() => {
@@ -83,7 +81,7 @@ export default function AddModelDownloadModal() {
8381
hasSearchBar={true} dropdownItemsClasses="max-h-96 overflow-y-auto" ignoreDisabledForSearch={true}
8482
selectedOption={(option: any) => {
8583
setModelName(option.configString);
86-
}} optionsHaveHoverBox={true} hoverBoxList={hoverBoxList} lineSeparatorIndex={lineSeparatorIndex}
84+
}} optionsHaveHoverBox={true} hoverBoxList={hoverBoxList}
8785
searchTextTyped={(option: any) => setModelName(option)}
8886
filteredOptions={(option) => {
8987
setFilteredList(modelsList.filter((model: any) => model.configString.includes(option)));

src/components/models-download/ModelsDownload.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ export default function ModelsDownload() {
6666
<th scope="col"
6767
className="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500">
6868
Name</th>
69-
<th scope="col"
70-
className="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500">
71-
Zero-shot</th>
7269
<th scope="col"
7370
className="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500">
7471
Revision</th>
@@ -95,15 +92,6 @@ export default function ModelsDownload() {
9592
<td className="text-center px-3 py-2 text-sm text-gray-500">
9693
<span className="inline-block mr-2">{model.name}</span>
9794
</td>
98-
<td className="text-center px-3 py-2 text-sm text-gray-500">
99-
<div className="flex justify-center">
100-
{model.zeroShotPipeline ? <Tooltip content={TOOLTIPS_DICT.MODELS_DOWNLOAD.USED_ZS} color="invert" placement="top" className="cursor-auto">
101-
<IconCheckbox className="h-5 w-5"></IconCheckbox>
102-
</Tooltip> : <Tooltip content={TOOLTIPS_DICT.MODELS_DOWNLOAD.NOT_USED_ZS} color="invert" placement="top" className="cursor-auto">
103-
<IconBan className="h-5 w-5"></IconBan>
104-
</Tooltip>}
105-
</div>
106-
</td>
10795
<td className="text-center px-3 py-2 text-sm text-gray-500">
10896
{model.revision ? model.revision : '-'}
10997
</td>

src/components/projects/projectId/admin/DeletePersonalTokenModal.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/projects/projectId/admin/NewPersonalTokenModal.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/components/projects/projectId/admin/ProjectAdmin.tsx

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)