Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("QuickRead/pegasus-reddit-7e05")
|
5 |
|
6 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("QuickRead/pegasus-reddit-7e05")
|
7 |
|
8 |
def preprocess(inp):
|
9 |
input_ids = tokenizer(inp, return_tensors="pt").input_ids
|
|
|
1 |
import streamlit as st
|
2 |
+
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("QuickRead/pegasus-reddit-7e05-new")
|
6 |
|
7 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("QuickRead/pegasus-reddit-7e05-new")
|
8 |
|
9 |
def preprocess(inp):
|
10 |
input_ids = tokenizer(inp, return_tensors="pt").input_ids
|