Spaces:
Sleeping
Sleeping
Update summarizer.py
Browse files- summarizer.py +1 -1
summarizer.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
|
| 5 |
|
| 6 |
def summarize(input_, model):
|
| 7 |
if input_.split("/")[0] == "https:":
|
| 8 |
-
text = extract_text(
|
| 9 |
else:
|
| 10 |
text = input_
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
def summarize(input_, model):
|
| 7 |
if input_.split("/")[0] == "https:":
|
| 8 |
+
text = extract_text(input_)
|
| 9 |
else:
|
| 10 |
text = input_
|
| 11 |
|