BigSalmon commited on
Commit
05d7eef
1 Parent(s): fce420f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import torch.nn as nn
7
  from transformers.activations import get_activation
8
  from transformers import AutoTokenizer, AutoModelWithLMHead, AutoModelForCausalLM
9
 
10
- st.title('GPT2: To see all prompt outlines: https://huggingface.co/BigSalmon/InformalToFormalLincoln40')
11
  #device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  number_of_outputs = st.sidebar.slider("Number of Outputs", 50, 350)
13
 
@@ -33,9 +33,10 @@ def get_model():
33
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln35")
34
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln39")
35
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln40")
 
36
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/Points4")
37
  tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
38
- model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln44")
39
  return model, tokenizer
40
 
41
  model, tokenizer = get_model()
 
7
  from transformers.activations import get_activation
8
  from transformers import AutoTokenizer, AutoModelWithLMHead, AutoModelForCausalLM
9
 
10
+ st.title('GPT2: To see all prompt outlines: https://huggingface.co/BigSalmon/InformalToFormalLincoln46')
11
  #device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  number_of_outputs = st.sidebar.slider("Number of Outputs", 50, 350)
13
 
 
33
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln35")
34
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln39")
35
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln40")
36
+ #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln44")
37
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/Points4")
38
  tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln")
39
+ model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln46")
40
  return model, tokenizer
41
 
42
  model, tokenizer = get_model()