ayyuce commited on
Commit
fa9e7e1
·
verified ·
1 Parent(s): 8c2255f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ st.set_page_config(page_title="NeoProtein Designer", page_icon="🧬")
6
  st.title("🧬 NeoProtein-GPT Protein Designer")
7
  st.markdown("""
8
  ### Design novel protein sequences with unique binding sites
9
- *Using the [NeoProtein-GPT](https://huggingface.co/ayyuce/NeoProtein-GPT) model*
10
  """)
11
 
12
  with st.sidebar:
@@ -19,13 +19,13 @@ with st.sidebar:
19
  @st.cache_resource(show_spinner=False)
20
  def load_model():
21
  model = GPT2LMHeadModel.from_pretrained(
22
- "ayyuce/NeoProtein-GPT",
23
  force_download=True,
24
  resume_download=False,
25
  local_files_only=False,
26
  trust_remote_code=True
27
  )
28
- tokenizer = GPT2Tokenizer.from_pretrained("ayyuce/NeoProtein-GPT")
29
  return model, tokenizer
30
 
31
  model, tokenizer = load_model()
 
6
  st.title("🧬 NeoProtein-GPT Protein Designer")
7
  st.markdown("""
8
  ### Design novel protein sequences with unique binding sites
9
+ *Using the [NeoProtein-GPT](https://huggingface.co/MLforHealthcare/NeoProtein-GPT) model*
10
  """)
11
 
12
  with st.sidebar:
 
19
  @st.cache_resource(show_spinner=False)
20
  def load_model():
21
  model = GPT2LMHeadModel.from_pretrained(
22
+ "MLforHealthcare/NeoProtein-GPT",
23
  force_download=True,
24
  resume_download=False,
25
  local_files_only=False,
26
  trust_remote_code=True
27
  )
28
+ tokenizer = GPT2Tokenizer.from_pretrained("MLforHealthcare/NeoProtein-GPT")
29
  return model, tokenizer
30
 
31
  model, tokenizer = load_model()