Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
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)
|