PhantHive commited on
Commit
7a6d2f1
1 Parent(s): 98f0f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
8
 
9
  # Load models and tokenizer efficiently
10
  model_id = "phearion/bigbrain-v0.0.1"
11
- config = PeftConfig.from_pretrained(model_id)
12
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
13
  model = PeftModel.from_pretrained(model_id)
14
  model.to(device)
 
8
 
9
  # Load models and tokenizer efficiently
10
  model_id = "phearion/bigbrain-v0.0.1"
11
+ config = PeftConfig.from_pretrained(model_id=model_id)
12
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
13
  model = PeftModel.from_pretrained(model_id)
14
  model.to(device)