BigSalmon commited on
Commit
a08c530
·
1 Parent(s): da191b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -8,15 +8,18 @@ from transformers.activations import get_activation
8
  from transformers import AutoTokenizer, AutoModelForCausalLM
9
 
10
 
11
- st.title('GPT2: To see all prompt outlines: https://huggingface.co/BigSalmon/InformalToFormalLincoln43')
12
 
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
 
 
 
17
 
18
- tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln43")
19
- model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln43")
20
 
21
  #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln41")
22
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln41")
 
8
  from transformers import AutoTokenizer, AutoModelForCausalLM
9
 
10
 
11
+ st.title('GPT2: To see all prompt outlines: https://huggingface.co/BigSalmon/InformalToFormalLincoln45')
12
 
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
17
+
18
+ tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln45")
19
+ model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln45")
20
 
21
+ #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln43")
22
+ #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln43")
23
 
24
  #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln41")
25
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln41")