Created
December 24, 2023 18:28
-
-
Save zbentley/d3d6cf962a7222141ddf3d37b16d14be to your computer and use it in GitHub Desktop.
Static hash model lookup example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@st.cache_resource | |
def load_model(modelnum: int): | |
return keras.models.load_model(f"root/C{modelnum}free') | |
... | |
modelnum = int(re.findall(r'\d+', option)[0]) | |
cNfree = pred(load_model(modelnum), list50) # model{n} for c{n}free |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment