Skip to content

Commit

Permalink
fix: added keep script to prevent removing model file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Jul 18, 2024
1 parent c47d387 commit ab22371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions assets/models/keep.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@raw/llama3tokenizer.gguf"/>
5 changes: 0 additions & 5 deletions constants/Characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,12 @@ export namespace Characters {
const imageID = get().card?.data.image_id
if (imageID) return copyImage(sourceURI, imageID)
},
getCardTest: () => {
return get().card
},
getCache: (charName: string) => {
const cache = get().tokenCache
console.log(cache)
const card = get().card
if (cache?.otherName && cache.otherName === useUserCard.getState().card?.data.name)
return cache

console.log(card)
if (!card)
return {
otherName: charName,
Expand Down

0 comments on commit ab22371

Please sign in to comment.