Skip to content

Commit

Permalink
refactor: model verification is now manual
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Oct 10, 2024
1 parent e38f7af commit 5ec892d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/components/ModelManager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ const ModelManager = () => {
exit={() => setShowSettings(false)}
/>
)}
{showSettings && (
<TouchableOpacity
style={styles.settingsButton}
onPress={() => Llama.verifyModelList()}>
<Text>{'Verify Models'}</Text>
</TouchableOpacity>
)}

<TouchableOpacity
style={styles.settingsButton}
Expand Down Expand Up @@ -197,6 +204,7 @@ const styles = StyleSheet.create({
},

settingsButton: {
marginTop: 12,
backgroundColor: Style.getColor('primary-brand'),
alignItems: 'center',
paddingVertical: 8,
Expand Down
2 changes: 1 addition & 1 deletion app/constants/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const initializeApp = async () => {
})

await migratePresets()
await Llama.verifyModelList()
// await Llama.verifyModelList()
}

export const generateDefaultDirectories = async () => {
Expand Down

0 comments on commit 5ec892d

Please sign in to comment.