BigSalmon commited on
Commit
22adb81
1 Parent(s): d2cb0f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,12 +11,13 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  @st.cache(allow_output_mutation=True)
12
  def get_model():
13
  tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
14
- model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln24")
15
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln5")
16
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln4")
17
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
18
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln2")
19
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
 
20
  model.to(device)
21
  return model, tokenizer
22
 
 
11
  @st.cache(allow_output_mutation=True)
12
  def get_model():
13
  tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
14
+ model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln6")
15
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln5")
16
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln4")
17
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
18
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln2")
19
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
20
+ #model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln24")
21
  model.to(device)
22
  return model, tokenizer
23