abdulmatinomotoso
commited on
Commit
•
eccf8af
1
Parent(s):
a90e403
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ tokenizer = BartTokenizer.from_pretrained("facebook/bart-large-cnn")
|
|
20 |
|
21 |
# Defining a function to read in the text file
|
22 |
def read_in_text(url):
|
23 |
-
with open(
|
24 |
article = file.read()
|
25 |
|
26 |
return article
|
|
|
20 |
|
21 |
# Defining a function to read in the text file
|
22 |
def read_in_text(url):
|
23 |
+
with open(url, "r") as file:
|
24 |
article = file.read()
|
25 |
|
26 |
return article
|