BigSalmon commited on
Commit
f367e37
1 Parent(s): d8b6b57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -12,8 +12,11 @@ first = """informal english: corn fields are all across illinois, visible once y
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  @st.cache(allow_output_mutation=True)
14
  def get_model():
15
- tokenizer = AutoTokenizer.from_pretrained("M4-ai/tau-1.8B")
16
- model = AutoModelForCausalLM.from_pretrained("M4-ai/tau-1.8B")
 
 
 
17
 
18
  #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln119Paraphrase")
19
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln119Paraphrase")
 
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  @st.cache(allow_output_mutation=True)
14
  def get_model():
15
+ #tokenizer = AutoTokenizer.from_pretrained("M4-ai/tau-1.8B")
16
+ #model = AutoModelForCausalLM.from_pretrained("M4-ai/tau-1.8B")
17
+
18
+ tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
19
+ model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
20
 
21
  #tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln119Paraphrase")
22
  #model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln119Paraphrase")