anoushka2000 commited on
Commit
a490df1
·
verified ·
1 Parent(s): 00a4faa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ st.markdown(
30
  @st.cache_resource
31
  def load_model(model_name: str):
32
  tokenizer = SmirkTokenizerFast()
33
- model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
34
  model.eval()
35
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
36
  return model.to(device), tokenizer, device
 
30
  @st.cache_resource
31
  def load_model(model_name: str):
32
  tokenizer = SmirkTokenizerFast()
33
+ model = AutoModel.from_pretrained(model_name, trust_remote_code=True, use_auth_token=True)
34
  model.eval()
35
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
36
  return model.to(device), tokenizer, device