HemanM commited on
Commit
99f288e
·
verified ·
1 Parent(s): 6a4410c

Update init_model.py

Browse files
Files changed (1) hide show
  1. init_model.py +5 -0
init_model.py CHANGED
@@ -19,5 +19,10 @@ def initialize_and_save_model():
19
 
20
  print("✅ EvoTransformer and tokenizer initialized and saved to 'trained_model/'")
21
 
 
 
 
 
 
22
  if __name__ == "__main__":
23
  initialize_and_save_model()
 
19
 
20
  print("✅ EvoTransformer and tokenizer initialized and saved to 'trained_model/'")
21
 
22
+ def load_model():
23
+ model = EvoTransformerForClassification.from_pretrained("trained_model")
24
+ return model
25
+
26
+ # Optional: reinitialize if run directly
27
  if __name__ == "__main__":
28
  initialize_and_save_model()