Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ tokenizer = T5Tokenizer.from_pretrained(model_path)
|
|
9 |
|
10 |
|
11 |
def summarize_text(text,max_length):
|
|
|
12 |
# Preprocess the text
|
13 |
inputs = tokenizer.encode(
|
14 |
"summarize: " + text,
|
|
|
9 |
|
10 |
|
11 |
def summarize_text(text,max_length):
|
12 |
+
print(max_length)
|
13 |
# Preprocess the text
|
14 |
inputs = tokenizer.encode(
|
15 |
"summarize: " + text,
|