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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,10 +7,10 @@ import torch
7
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
8
 
9
  # Load models and tokenizer efficiently
10
- peft_model_id = "phearion/bigbrain-v0.0.1"
11
- config = PeftConfig.from_pretrained(peft_model_id)
12
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
13
- model = PeftModel.from_pretrained(peft_model_id)
14
  model.to(device)
15
 
16
  def greet(text):
 
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)
15
 
16
  def greet(text):