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