yinuozhang commited on
Commit
4831657
1 Parent(s): e6bf8ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModel, AutoConfig
 
 
 
 
 
3
 
4
  tokenizer = AutoTokenizer.from_pretrained("facebook/esm2_t33_650M_UR50D")
5
  config = AutoConfig.from_pretrained("ChatterjeeLab/MetaLATTE")
 
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModel, AutoConfig
3
+ metalatte_path = './Chatterjeelab/MetaLATTE'
4
+ sys.path.insert(0, metalatte_path)
5
+ from metalatte import MetaLATTEConfig, MetaLATTEModel
6
+ AutoConfig.register("metalatte", MetaLATTEConfig)
7
+ AutoModel.register(MetaLATTEConfig, MetaLATTEModel)
8
 
9
  tokenizer = AutoTokenizer.from_pretrained("facebook/esm2_t33_650M_UR50D")
10
  config = AutoConfig.from_pretrained("ChatterjeeLab/MetaLATTE")