BigSalmon commited on
Commit
599c53c
1 Parent(s): 50a0739

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -14,9 +14,15 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
 
 
 
 
 
17
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln21")
18
- tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln31")
19
- model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln31")
 
20
  return model, tokenizer
21
 
22
  model, tokenizer = get_model()
 
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
17
+
18
+ #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln31")
19
+ #model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln31")
20
+
21
+ #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln21")
22
  #model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln21")
23
+
24
+ tokenizer = AutoTokenizer.from_pretrained("BigSalmon/PointsOneSent")
25
+ model = AutoModelWithLMHead.from_pretrained("BigSalmon/PointsOneSent")
26
  return model, tokenizer
27
 
28
  model, tokenizer = get_model()