BigSalmon commited on
Commit
7fbd145
·
1 Parent(s): b197998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
4
  st.title("Paraphrase")
5
  model_name = st.text_input("Pick a Model", "geckos/pegasus-fined-tuned-on-paraphrase")
6
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
7
- tokenizer = AutoTokenizer.from_pretrained("t5-base")
8
 
9
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
10
  model = model.to(device)
 
4
  st.title("Paraphrase")
5
  model_name = st.text_input("Pick a Model", "geckos/pegasus-fined-tuned-on-paraphrase")
6
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
7
+ tokenizer = AutoTokenizer.from_pretrained("geckos/pegasus-fined-tuned-on-paraphrase")
8
 
9
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
10
  model = model.to(device)