PascalNotin commited on
Commit
9103754
1 Parent(s): 26ed57d

Added seaborn and removed auth token

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -82,11 +82,11 @@ def get_mutated_protein(sequence,mutant):
82
 
83
  def score_and_create_matrix_all_singles(sequence,mutation_range_start=None,mutation_range_end=None,model_type="Small",scoring_mirror=False,batch_size_inference=20,num_workers=0,AA_vocab=AA_vocab):
84
  if model_type=="Small":
85
- model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Small",use_auth_token=True)
86
  elif model_type=="Medium":
87
- model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Medium",use_auth_token=True)
88
  elif model_type=="Large":
89
- model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Large",use_auth_token=True)
90
  model.config.tokenizer = tokenizer
91
  all_single_mutants = create_all_single_mutants(sequence,AA_vocab,mutation_range_start,mutation_range_end)
92
  scores = model.score_mutants(DMS_data=all_single_mutants,
 
82
 
83
  def score_and_create_matrix_all_singles(sequence,mutation_range_start=None,mutation_range_end=None,model_type="Small",scoring_mirror=False,batch_size_inference=20,num_workers=0,AA_vocab=AA_vocab):
84
  if model_type=="Small":
85
+ model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Small")
86
  elif model_type=="Medium":
87
+ model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Medium")
88
  elif model_type=="Large":
89
+ model = tranception.model_pytorch.TranceptionLMHeadModel.from_pretrained(pretrained_model_name_or_path="PascalNotin/Tranception_Large")
90
  model.config.tokenizer = tokenizer
91
  all_single_mutants = create_all_single_mutants(sequence,AA_vocab,mutation_range_start,mutation_range_end)
92
  scores = model.score_mutants(DMS_data=all_single_mutants,
requirements.txt CHANGED
@@ -2,4 +2,5 @@ gradio
2
  transformers==4.17
3
  datasets==1.18.3
4
  biopython==1.78
5
- torch
 
 
2
  transformers==4.17
3
  datasets==1.18.3
4
  biopython==1.78
5
+ torch
6
+ seaborn