breadlicker45 commited on
Commit
a1a6da1
1 Parent(s): 21706df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  from transformers import pipeline
3
  from transformers import AutoTokenizer, AutoModelForCausalLM
4
 
5
- tokenizer = AutoTokenizer.from_pretrained("facebook/galactica-1.3b")
6
- model = AutoModelForCausalLM.from_pretrained("facebook/galactica-1.3b")
7
  text2text_generator = pipeline("text-generation", model=model, tokenizer=tokenizer, num_workers=2)
8
 
9
  def predict(text, max_length=64, temperature=0.7, do_sample=True):
 
2
  from transformers import pipeline
3
  from transformers import AutoTokenizer, AutoModelForCausalLM
4
 
5
+ tokenizer = AutoTokenizer.from_pretrained("facebook/galactica-125m")
6
+ model = AutoModelForCausalLM.from_pretrained("facebook/galactica-125m")
7
  text2text_generator = pipeline("text-generation", model=model, tokenizer=tokenizer, num_workers=2)
8
 
9
  def predict(text, max_length=64, temperature=0.7, do_sample=True):