Spaces:
Runtime error
Runtime error
Commit
Β·
0a416ac
1
Parent(s):
1535ccd
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ import torch
|
|
11 |
model_path = "leadingbridge/summarization"
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
model = T5ForConditionalGeneration.from_pretrained(model_path)
|
|
|
14 |
def summarize_text(text):
|
15 |
# Tokenize the input text
|
16 |
inputs = tokenizer.encode(text, return_tensors="pt")
|
|
|
11 |
model_path = "leadingbridge/summarization"
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
model = T5ForConditionalGeneration.from_pretrained(model_path)
|
14 |
+
text = "This is the initial testing text"
|
15 |
def summarize_text(text):
|
16 |
# Tokenize the input text
|
17 |
inputs = tokenizer.encode(text, return_tensors="pt")
|