Spaces:
Sleeping
Sleeping
Commit
·
5ff4ff7
1
Parent(s):
85d10d3
app updated
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ tokenizer = GPT2Tokenizer.from_pretrained(pretrained_model_name_or_path='ErnestB
|
|
7 |
text = st.text_area("Paste your Content")
|
8 |
|
9 |
if text:
|
10 |
-
tokenized_input = tokenizer(
|
11 |
with torch.no_grad():
|
12 |
outputs = model(**tokenized_input)
|
13 |
|
|
|
7 |
text = st.text_area("Paste your Content")
|
8 |
|
9 |
if text:
|
10 |
+
tokenized_input = tokenizer(text, return_tensors='pt')
|
11 |
with torch.no_grad():
|
12 |
outputs = model(**tokenized_input)
|
13 |
|